• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

State Management

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All

Trying to understand  JSF statemangement especially with viewstate ,component tree state,component tree datastrucutre.
After going through some articles with in JSF forum of code ranch,i have this understanding

viewstate---> object that has only values entered by users for an element with in view.For example for username--john,password--abcd, viewstate stores jhon and abcd (Is this correct?)
component tree state---> component tree state and view state ,these words are same and refer to the values entered by user in a view
component tree data strucutre---> this is run time representation of view that is objects are created for each control with UIViewroot as object.

also viewstate and component tree data strucutre are stored with in JSF(by default in session?).

And also while going thru life cycle,in restrore phase,for a post back request,is it true that entire component tree is rebuilt or is it restored from session?

Also if there are 1000 customers.
And say if there is a view/screen username and password . Is it true that JSF creates 1000 component tree data structure objects.

Is it  not possible to use one component tree data structure object for all 1000 customers
reply
    Bookmark Topic Watch Topic
  • New Topic