The only thing I can think of is to check the referer header in the request. If 
its not from this page, you can clear all the persistent fiends in setupRender

On Mar 4, 2013, at 3:42 PM, bhorvat <horvat.z.bo...@gmail.com> wrote:

> Is there any way to check if the user has just refreshed a page (in this case
> I would like to keep all of the fields persistent) or if it has come to the
> page from some other place (in this case I want to have a clear start).
> 
> Basically I have some checkboxes that I want to keep in memory what has been
> selected. Once a user submits a form/or simple refreshes something I dont
> want to clear the checkboxes but if it come from a different page I want to
> have them cleared.
> 
> I am aware of the methods like onPasivate and onActivate but can I somehow
> distinguish between those 2 events.
> 
> Cheers
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Checking-if-user-has-left-the-page-or-refreshed-it-tp5720332.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to