• 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

Fundamental life cycle question

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic