I am using GWTP, I am also using NestedPresenter in a form of 
parentPresenter (Ex: HeaderPage) and childPresenter (ContentPage). I also 
want to send info from parentPresenter to childPresenter (Ex: when user 
Loginned in HeaderPresenter then the info will be pass onto the 
childPresenter).

Now, I am very confusing about the difference among onBind, 
prepareFromRequest, revealInParent, onReveal, onReset.

Google said (
https://code.google.com/p/gwt-platform/wiki/FrequentlyAskedQuestions#How_do_I_choose_between_onReveal()_and_onReset()?)
 
"On First Load, onBind will be called first then prepareFromRequest will be 
called sencond, revealInParent called 3rd, then onReveal, then onReset".

So here are the list of my questions:

-When a page that have Header & Content, then cycle (onBind, 
prepareFromRequest, revealInParent, onReveal, onReset) will be called 
*first* in parent header presenter, then after that all same cycle (onBind, 
prepareFromRequest, revealInParent, onReveal, onReset) will be called 
*second* in child or nested content presenter? 

Or both parentPresenter & childPresenter go through the cycle independently?

If they go through the cycle independently, then we can have a problem. Ex, 
whenever user refreshes the page (header+content), if the header already 
checked the session, then I want the header pass the session info into the 
child content page, but since they go through the cycle independently then 
how parent presenter pass info when child presenter has not initialized?

Second question is how to know which method should to be put put into which 
cycle?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to