Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

State Management  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • 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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!