> You can use the public String onPassivate() function in a Page class to > alter the context URL posted to the client browser.
I think the OP wants to change the URL for the original GET request. In that case you're going to need to redirect to the page with no context parameters. Try returning this (return this;) from the onActivate method. Your passivate method will be used to determine the values used in the redirected page context. Josh On Fri, May 20, 2011 at 2:53 PM, Rich M <rich...@moremagic.com> wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org