Re: Checking if user has left the page or refreshed it

2013-03-06 Thread Bob Harner
Be aware that the referer header is unreliable. It is frequently blocked by proxies, and in the case of SSL I believe it is (usually? always?) not present. On Tue, Mar 5, 2013 at 3:58 PM, bhorvat horvat.z.bo...@gmail.com wrote: Cool I will then try what you suggested. The pageReset event looks

Checking if user has left the page or refreshed it

2013-03-04 Thread bhorvat
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

Re: Checking if user has left the page or refreshed it

2013-03-04 Thread Yohan Yudanara
I think you can use pageReset event to clear the checkboxes. It is called when user come from another page. This is copy paste from http://blog.tapestry5.de/index.php/2010/08/11/tapestry-5-2-preview/ A page is reset when the page is accessed from another page; component event links and page

Re: Checking if user has left the page or refreshed it

2013-03-04 Thread Lenny Primak
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