Re: [T5] Cleaning page's persistent field

2008-06-17 Thread Marcelo Lotif
Nice! Works perfectly! I got it all with one single line(i.e. way better than my last solution...) Thanks! 2008/6/16 Howard Lewis Ship <[EMAIL PROTECTED]>: > You can cheat by taking a page instance, casting it to Component (or > to ComponentResourcesAware) and getting it's ComponentResources tha

Re: [T5] Cleaning page's persistent field

2008-06-16 Thread Howard Lewis Ship
You can cheat by taking a page instance, casting it to Component (or to ComponentResourcesAware) and getting it's ComponentResources that way. You can then invoke the discardPersistentFieldChanges() method directly. If you know the name of a page, the ComponentSource service has a method, getPage

[T5] Cleaning page's persistent field

2008-06-16 Thread Marcelo Lotif
Hi guys, I was getting around some issues in my application regarding to the size of the session, and i found on the tapestry site that you can clean the persistent data of a page by injecting ComponentResources and running discardPersistentFieldChanges(), but i also noted that this can only be don