Supraja wrote:
<snip code example/>
> How and where should I give cycle.getAttribute("User") , in Presentation Page
> ? I tried giving in pageBeginRender() method of PresentationPage but it is
> giving null. Could you please help?
I get the feeling that you are thinking a little too much about
'sessions' here, which is where option 2 comes in, anyway I have two
suggestions:
1) The attribute that you want to set on the presentation page, make
it a property of this page.
eg.
Create a static method on the PresentationPage like the following:
public static void activate(IRequestCycle cycle, User user){
PresentationPage page = (PresentationPage)
cycle.getPage("PresentationPage");
page.setUser(user);
cycle.activate(page);
}
This method can then be called from the submit method of the login page:
public void submitListener(IRequestCycle cycle){
PresentationPage.activate(cycle, user);
}
2) Add this attribute to the Visit for the user and retrieve it from
the visit when you go to the presentation page.
I hope this helps a little.
Cheers,
Justin
--
Justin Koke
E: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]