Win a copy of Hands On Software Engineering with Python this week in the Jython/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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

State Management  RSS feed

 
Greenhorn
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
 
A teeny tiny vulgar attempt to get you to buy our stuff
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!