For stateless mounted page incorrect url is generated
Not only feedback, anything that depends temporary state will break with redirects
Looks like it needs fixing for 1.3.0.
There is currently even more broken. If you do uncomment that line and test the stateless example, and submit the form in the 'other' stateless page, you'll see that the reference to the stylesheet is wrong as well. The proper one (as it is before the form submit) is:
<link href="../../style.css" rel="stylesheet" type="text/css"/> and the URL to the page is: http://localhost:8080/wicket-examples/stateless/public/StatelessPage
After the commit this is:
<link href="../../../../../../../../style.css" rel="stylesheet" type="text/css"/> for URL:
Ok, that last issue was unrelated and is fixed now.
Turned out to have nothing to do with state, but rather with the way mounts were handled (package mounts ignored the interface parameter that is used for requests to stateless pages).
It was actually only partially a duplicate of WICKET-497, as part of the problem was that the package mounter didn't look for the interface argument to decide what request target to return.