I'm having a similar, but different problem.

I have a PasswordResetPage for reseting a user password.

I am using Spring Security and need to link to it from a login.jsp.

So in my WebApplication class I have:

mountBookmarkablePage(ConstantsCommon.PASSWORD_RESET_PATH,
PasswordResetPage.class);

And this allows me to link to the page from the login.jsp. It also allows me
to specify in my Spring security that this URL does not require
authentication.

<sec:intercept-url  pattern="/wicket/passwordReset*" filters="none" />

So I get to my PasswordResetPage ok. But when I hit the "Ok" button on my
form, it submits to a URL like
"http://localhost:8080/myapp/wicket/?wicket:interface blah blah blah". 

And then my Spring Security intercepts it and redirects back to the
login.jsp.

How can I get the form to submit to the nice URL?

I have tried:

form.add(new AttributeModifier("action", true, new
Model(ConstantsCommon.PASSWORD_RESET_CONTEXT)));

But that just re-displays the page.






-- 
View this message in context: 
http://www.nabble.com/Bookmarkable-page-with-a-form.-The-URL-switches-from-the-mounted-one--into-an-unfriendly-one.-tp23658727p25677674.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to