here is what i do
In Application which is WicketApplication in the init method
mount(new
HybridUrlCodingStrategy("/secure/index.jas/searchPCR",Foo.class,true));
my form object the method onSubmit()
calls setResponsePage(new Foo()); does this matter
and setRedirect(true)
and my web.xml wicket filter is mapped to all requests
<filter-mapping>
<filter-name>wicket</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I tested with this but I was getting the same wicket url and not the mount
path, then I changed setResponsePage to take class as parameter and not
instance , then it worked .How the two methods setResposnePage(new Page())
, setResponsePage(Page.class) differ ?
Erik van Oosten wrote:
>
> Miro,
>
> In Nabble, please do not edit your message after you've send it. That
> way you're message appears twice.
>
> Wicket will always use the mount path of the page you are forwarding to,
> that is, if you called setResponsePage. You can also look into mounting
> with a HybrodUrlEncoder.
>
> Regards,
> Erik.
>
>
> miro wrote:
>> After submit a form with redirect set to true , the wicket generates its
>> own
>> url and not the mountpath.
>> Is there a way to avoid this ?
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/url-after--submitting--a-form--with-a-redirect-tp19069918p19078053.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]