Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fundamental life cycle question  RSS feed

 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JSF I have a fundamental question about the life cyle of JSF.
Most of the tutorials say that the 'restore component view' stage restores the component tree to the previous state.Here is what the JSF tutorial in java world says 'If that page previously displayed and JSF saved the page's state information, the state information is added to the request.'
1.What does page's state information mean?Is it anything other that the state of the bean associcated with the components?
2.What 'state information is added to request' mean?If page is requested based on a form submit the current request will have request parameters filled during submitting the form, then, what is state information that is added to request?

Hope i am clear about my query.
Thanks in advance
William
 
Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi William,


This restore view is usefull when you are switching from faces-page to non-faces page and again back to faces-page.

Cheers
 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by DJDON:
Hi William,


This restore view is usefull when you are switching from faces-page to non-faces page and again back to faces-page.

Cheers


Hi DDJDON,
I am afraid am not sure about what your response means. To reiterate my question-- The Restore View phase is supposed to retrieve the component tree, if it was already displayed or construct a new component tree if it displayed for the first time.
Consider the following scenario, A.jsp is already rendered on the web brower with a form that submits to B.jsp.
What happens when the user clicks on 'submit' on A.jsp? Will the component tree of A.jsp be retrieved or that of B? If it is on B.jsp then, how does JSF know that the target page is B.jsp because target page is derived only after 'Invoke application' phase?
Hope i am clear
Thanks in advance
William
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!