Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Pedro Santos
Hi, I take a look at Page and WicketFilter code, it seems that an "actual session" (typically an instance of {...@link HttpSession}) are created only if it is necessary. For example: if (!isPageStateless()) { // trigger creation of the actual session in case it was de

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Juan Carlos Garcia M.
At any time, WebSession.get() will give you Wicket Session Object, but it will not get persisted until you actually hit a page which requires state full behavior. (Someone please correct me if im wrong.) liny wrote: > > Hi, > > "user id" is the username. I want to set user id into session att

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread liny
Hi, "user id" is the username. I want to set user id into session attribute. After I call WebSession.bind(), now the problem is solved. But why MyauthenticatedWebSession is temporary in default? (no session id) Pedro Santos-6 wrote: > > Please, what is "user id" that you refers? > > On Wed,

Re: Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Pedro Santos
Please, what is "user id" that you refers? On Wed, Sep 9, 2009 at 5:31 AM, Anders wrote: > Hi, > > I can get the user id attribute from my authenticatedWebSession in a > role-needed page. > But I can't get user id when I go to no-role-needed page. > Do I need to override newSession() method in W

Can't get attribute from AuthenticatedWebSession for no-role -needed page.

2009-09-09 Thread Anders
Hi, I can get the user id attribute from my authenticatedWebSession in a role-needed page. But I can't get user id when I go to no-role-needed page. Do I need to override newSession() method in WebApplication? Please help me~ Belows are my classes: public class HelloWorldApplication extends Auth