Right, the trick is calling discardPersistentFieldChanges() at the right time. You cannot, or at least it doesn't make sense in the general case, to simply call it on browser's onunload(). Tapestry-conversations module relies on the idea of short term expiration of page-specific session data, where the expiration can be extended if the user is not idling (interacts with the server side, stays on the page, etc.).
Kalle On Mon, Dec 27, 2010 at 9:44 AM, Michael Gentry <mgen...@masslight.net> wrote: > discardPersistentFieldChanges() will discard @Persist values, but the > original question was how to do it when the user leaves the page. > Read Howard's message here along with the following messages: > > http://markmail.org/message/67dbxuwf3rw3naja > > In a nutshell, it was easy to implement pageReset, but to implement > resets when the user leaves the page would be difficult. > > mrg > > > On Mon, Dec 27, 2010 at 6:53 AM, LLTYK <ll...@mailinator.com> wrote: >> >> It's called discardPersistentFieldChanges: >> >> http://tapestry.1045711.n5.nabble.com/T5-Cleaning-page-s-persistent-field-td2419355.html >> -- >> View this message in context: >> http://tapestry-users.832.n2.nabble.com/T5-2-4-How-to-discard-persistent-fields-when-the-user-leaves-a-page-tp5867260p5869215.html >> Sent from the Tapestry Users 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org