Hello All,

I want to clear page persistent properties but they are not always cleared.
Is this code correct for Tapestry-4.0-beta-4?

//Get page and clear it's persistent properties
IPage page = cycle.getPage(pageName);
cycle.forgetPage(pageName);

//Get page again and check that properties are cleared
IPage become = cycle.getPage(pageName);
if(become instanceof BaseFormPage) {
   BaseFormPage form = (BaseFormPage) become;
   //Sometimes it is NULL here, sometimes it is not
   System.out.println("ITEM AFTER CLEARING=" + form.getItem());
}

getItem() used in this example is defined as persistent:
<property name="item" persist="session" />

Thank you, Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to