I'm in favor of Session.get() returning null in 2.0, if not earlier.
You could add exists() in 1.3 and deprecate it in 2.0.Gili Frank Bille wrote: > I guess it would be more like a Session.exists() :) > > +1 for that. it's backportable. > > Frank > > > On 8/26/06, *Jaime De La Jara* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > I think Igor proposal, session.exists(), is correct and it could be > added without > any impact. > > Jaime. > > > > > >i think thats better then an npe, didnt even know we were doing that. so > > either this or add a session.exists() so you can test for it. > > > -Igor > > > > On 8/25/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > I thought about that myself too. I'd be fine letting > > RequestCycle.get (), Session.get() and Application.get() return > null if > > the thread local is not set. What do others think of this? > > > > Eelco > > > > > > On 8/25/06, Jaime De La Jara <[EMAIL PROTECTED]> wrote: > > > Hi, I was wondering why Session.get() throws a > WicketRuntimeException if > > the > > > session does not exists, in my app I define an > AuthorizationStrategy and > > I'm > > > also using some spring interceptors where I get a user object > that is > > saved > > > in the session but I had to include a try/catch block in each > case to > > > prevent a NEP in the former case. If the session is null why it > does not > > > return it? > > > > > > Thanks. > > > > > > Jaime. > > ------------------------------------------------------------------------ > All-new Yahoo! Mail > > <http://us.rd.yahoo.com/evt=43256/*http://advision.webevents.yahoo.com/mailbeta>- > Fire up a more powerful email and get things done faster. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > _______________________________________________ > Wicket-user mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/wicket-user > <https://lists.sourceforge.net/lists/listinfo/wicket-user> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
