i know there are many similar questions on this (an other) site but none of them helped me with my problem. i have 2 wicket stateful pages. the pages are mounted as follows:
mountPage(firstPath, firstPage.class);
mountPage(secondPath, secondPage.class);
when loading the page firstPage for the first time, it loads with the default constructor and url looks as desired. once the form in the firstPage gets submitted, i forward to the stateful page secondPage as follows:
Page secondPage = new secondPage(arg1, arg2);
RequestCycle().setResponsePage(secondPage);
although the second page is mounted, the resulting page (secondPage) renders with the following url:
context?21-1.IFormSubmitListener-componentName-childComponentName-childComponentName-someForm
what i want is the secondPage to be rendered with the mounted path i defined. i know that this is a stateful page and in order for wicket to load the exact instance of it the url must be stateful. i don't mind having a page version and id in the url, i just don't want to have this long ugly component path in the url. also, i don't understand why do i need the path to the form from the firstPage in the secondPage's url.
as far as i understand the wicket 1.4 HybridUrlCodingStrategy could do something similar, but i can't find any way to do it in wicket 1.5. is this even a possible thing to do with wicket?
any help would be much appreciated, as this really blocks me, and i have already spent too much time trying to solve it with no luck.