You can use the public String onPassivate() function in a Page class to alter the context URL posted to the client browser.

For example, I like to use it to beautify the URL so its not the more code-y page name it normally would be, and also to mask page names from the user so they cannot violate permissions (I do keep track of their current page somehow so a refresh doesn't break things for them).

String onPassivate(){
        //strip the package prefix and the page class suffix
return selectedComponent.replaceFirst("admin/", "").replaceFirst("Tab", "");
}

Hope that helps,
Rich

On 05/20/2011 05:50 PM, Ray Nicholus wrote:
...so that the context is not included after the page initially loads when
I, say, refresh the page via the browser's refresh button?  In other words,
how can I load a page with context parameters once and then discard them so
subsequent refreshes oft hat page do not use these parameters?



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to