Yes I have both here is my code 
        protected void onSubmit() {
                setResponsePage(Foo.class);
                setRedirect(true);
}



Michael Sparer wrote:
> 
> you have to set both redirect and setResponsePage
> 
> 
> miro wrote:
>> 
>> I tried the redirect ie setRedirect(true), it still does not show the 
>> mountpath.
>> 
>> 
>> Michael Sparer wrote:
>>> 
>>> Subclass form, override onSubmit, make it final, perform the redirect in
>>> there, offer another method to be overriden instead of onsubmit and use
>>> that form throughout your app
>>> 
>>> 
>>> 
>>> miro wrote:
>>>> 
>>>> Is there  a global configration for redirect  , ie if I want all my
>>>> form submission to do a redirect ?
>>>>  
>>>> 
>>>> Michael Sparer wrote:
>>>>> 
>>>>> No you only mount your page once, and after e.g. a formsubmit you
>>>>> could perform a redirect to the page if you want to keep your nice url
>>>>> - but i think we had that topic before, hadn't we?
>>>>> 
>>>>> 
>>>>> miro wrote:
>>>>>> 
>>>>>> do you mean that I should mount  a class several times  for all 
>>>>>> different implementations of IRequestTaget ?
>>>>>> like 
>>>>>> 
>>>>>> Michael Sparer wrote:
>>>>>>> 
>>>>>>> mount the page in your application class with a different
>>>>>>> encodingstrategy. e.g. indexedparamurlencodingstrategy which
>>>>>>> produces neat urls
>>>>>>> 
>>>>>>> 
>>>>>>> miro wrote:
>>>>>>>> 
>>>>>>>> if my requestTarget is of type IListenerInterfaceRequestTarget,  
>>>>>>>> WebRequestCodingStrategy  it calls  the method         protected
>>>>>>>> CharSequence encode(RequestCycle requestCycle,
>>>>>>>>                        IListenerInterfaceRequestTarget requestTarget) 
>>>>>>>> , this method
>>>>>>>> puts lot of details in url l?wicket:interface=:60:::: which does
>>>>>>>> not makes sense to me. Is there any way I can  rephrase this and
>>>>>>>> use the mounted string for this page ?  
>>>>>>>>  
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/url-when-requestTarget-is-of-type-IListenerInterfaceRequestTarget-tp19005159p19070019.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]

Reply via email to