Re: What is session.dirty() for?

2008-05-04 Thread Martin Makundi
If you subclassed the Session class and your attributes are properties of the subclass. Yes I did. But you are required to call session.dirty() only if your pages are stateless and your application is deployed on cluster. Why the session.dirty is called by the framework after modifying

Re: What is session.dirty() for?

2008-05-04 Thread Matej Knopp
On Sun, May 4, 2008 at 8:09 AM, Martin Makundi [EMAIL PROTECTED] wrote: If you subclassed the Session class and your attributes are properties of the subclass. Yes I did. But you are required to call session.dirty() only if your pages are stateless and your application is deployed

Re: What is session.dirty() for?

2008-05-03 Thread Michael Allan
Matej Knopp wrote: Martin Makundi wrote: Let's say I have some variables in my session. If these variables change, do I have to call session.dirty? If you subclassed the Session class and your attributes are properties of the subclass. But you are required to call session.dirty()

Re: What is session.dirty() for?

2008-05-03 Thread Johan Compagner
Nop thats the best thing todo On 5/3/08, Michael Allan [EMAIL PROTECTED] wrote: Matej Knopp wrote: Martin Makundi wrote: Let's say I have some variables in my session. If these variables change, do I have to call session.dirty? If you subclassed the Session class and your

What is session.dirty() for?

2008-05-02 Thread Martin Makundi
Hi! I have been coding without invoking session.dirty. Browsing framework code, I can see it is used. What does it accomplish and where should I have used it in my own code? ** Martin - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: What is session.dirty() for?

2008-05-02 Thread Matej Knopp
Hi, session.dirty() should be invoked when the session object has changed, so that wicket changes the http session attribute to make cluster replicate the session object (assuming you're running in clustered environment). I think the only case when you need to call dirty() yourself is when your

Re: What is session.dirty() for?

2008-05-02 Thread Martin Makundi
Could you please elaborate what you mean by session object has changed? Let's say I have some variables in my session. If these variables change, do I have to call session.dirty? ** Martin 2008/5/2 Matej Knopp [EMAIL PROTECTED]: Hi, session.dirty() should be invoked when the session object

Re: What is session.dirty() for?

2008-05-02 Thread Matej Knopp
On Fri, May 2, 2008 at 5:12 PM, Martin Makundi [EMAIL PROTECTED] wrote: Could you please elaborate what you mean by session object has changed? Let's say I have some variables in my session. If these variables change, do I have to call session.dirty? If you subclassed the Session class and