Re: Keeping the original url after submit

2006-07-17 Thread Blackwings
I think there is another solution more simple and handle by Tapestry. I think you can declare a page "version" as accessible directly from outside using a static URL and Tapestry serialize the page as a static page. Check this page : http://tapestry.apache.org/tapestry4/tapestry/ComponentReferenc

RE: Keeping the original url after submit

2006-07-17 Thread Firas A.
I got it! But the solution is rather low-level. First, I had to modify my form listener to return an ILink: public ILink onSubmit() Then, I had to create the ILink using LinkFactoryImpl: @InjectObject("service:tapestry.globals.WebRequest") public abstract WebRequest getWebRequest(); @Inje

Keeping the original url after submit

2006-07-17 Thread Firas A.
Hello, I have a page which is requested through a DirectLink. This page contains a form listener: public void onSubmit(). The problem: When the form is successfully submitted, the URL for the newly reloaded page lacks the service/listener parameters that were present in the originall request to