Re: T5:Cannot create a session after the response has been committed

2009-02-24 Thread Peter Stavrinides
iredo" To: "Tapestry users" Sent: Thursday, 19 February, 2009 15:20:07 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5:Cannot create a session after the response has been committed Please post the class that contains the snippet you posted here. By the way, you d

Re: T5:Cannot create a session after the response has been committed

2009-02-19 Thread Angelo Chen
Hi Thiago, Thanks for the reply, I have modified the code as you sugested, looks neat. the problem seems having to do with @ApplicationState, I have this for the same class in two places, also create it in a service, in one page, I have A @ApplicationState SessionDat _dat, in the same time I cal

Re: T5:Cannot create a session after the response has been committed

2009-02-19 Thread Thiago H. de Paula Figueiredo
Please post the class that contains the snippet you posted here. By the way, you don't need to asm.set(MySession.class, null), as you're invalidating the session. You can also inject HttpServletRequest directly and instead of getting it from RequestGlobals. Better yet, inject Tapestry's Request and