You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ta...@jakarta.apache.org on 2004/06/28 00:54:32 UTC

[Jakarta Tapestry Wiki] Updated: ClearingPersistentProperties

   Date: 2004-06-27T15:54:32
   Editor: 203.51.243.227 <>
   Wiki: Jakarta Tapestry Wiki
   Page: ClearingPersistentProperties
   URL: http://wiki.apache.org/jakarta-tapestry/ClearingPersistentProperties

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -7,7 +7,7 @@
 {{{
 		this.getEngine().forgetPage(this.getPageName());
 }}}
-This will clear the page state thus page properties are removed. This method works fine from direct link listeners though there is one situation that this does not work. Internally, the form listener uses the a page recorder to store and restore the persistent properties. If you attempt to forget the page within a form listener an exception will be thrown as the record is performing its work. In this case it is necessary to provide a hint for removal so that once the recorder has finished the page state can be removed.
+This will clear the page state thus page properties are removed. This method works fine from direct link listeners though there is one situation that this does not work. Internally, the form listener uses the a page recorder to store and restore the persistent properties. If you attempt to forget the page within a form listener an exception will be thrown as the recorder is performing its work. In this case it is necessary to provide a hint for removal so that once the recorder has finished the page state can be removed.
 {{{
 		this.getEngine().getPageRecorder(this.getPageName(), cycle).markForDiscard();
 }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org