Note that there are some explanatory texts on larger screens.

plurals
  1. POwicket 1.5 url after form submission with stateful page
    primarykey
    data
    text
    <p>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:</p> <pre><code>mountPage(firstPath, firstPage.class); mountPage(secondPath, secondPage.class); </code></pre> <p>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:</p> <pre><code>Page secondPage = new secondPage(arg1, arg2); RequestCycle().setResponsePage(secondPage); </code></pre> <p>although the second page is mounted, the resulting page (secondPage) renders with the following url:</p> <pre><code>context?21-1.IFormSubmitListener-componentName-childComponentName-childComponentName-someForm </code></pre> <p>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.</p> <p>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?</p> <p>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.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload