You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jorge Fernandez <jf...@gmail.com> on 2018/02/20 17:42:08 UTC

RestartResponseException within Modal window

Hi,

I am trying to handle a RestartResponseException within a Modal window in
my application. I would like to be redirected without the
UnloadConfirmation. I prefer not to use showUnloadConfirmation(boolean)
because I only want to bypass it in this specific case and enable it for
others. Any ideas on how this can be achieved?

Thanks

Re: RestartResponseException within Modal window

Posted by Jorge Fernandez <jf...@gmail.com>.
Hi, any other suggestions on how I could better handle a
RestartResponseException
within the modal window?

On Tue, Feb 20, 2018 at 5:29 PM, Jorge Fernandez <jf...@gmail.com> wrote:

> Yes, I need to be able to use RestartResponse since it is used by the
> application to perform special cleanup/handling.
>
> On Tue, Feb 20, 2018 at 3:03 PM, Sven Meier <sv...@meiers.net> wrote:
>
>> Hi,
>>
>> do you really need to use a RestartResponseException?
>>
>> You could close the dialog and redirect afterwards instead:
>>
>>     dialog.close(target);
>>     target.appendJavaScript(|"window.location ='http://www.yoururl.com
>> ';");|
>>
>> Have fun
>> Sven
>>
>>
>>
>> Am 20.02.2018 um 18:42 schrieb Jorge Fernandez:
>>
>>> Hi,
>>>
>>> I am trying to handle a RestartResponseException within a Modal window in
>>> my application. I would like to be redirected without the
>>> UnloadConfirmation. I prefer not to use showUnloadConfirmation(boolean)
>>> because I only want to bypass it in this specific case and enable it for
>>> others. Any ideas on how this can be achieved?
>>>
>>> Thanks
>>>
>>>
>>
>

Re: RestartResponseException within Modal window

Posted by Jorge Fernandez <jf...@gmail.com>.
Yes, I need to be able to use RestartResponse since it is used by the
application to perform special cleanup/handling.

On Tue, Feb 20, 2018 at 3:03 PM, Sven Meier <sv...@meiers.net> wrote:

> Hi,
>
> do you really need to use a RestartResponseException?
>
> You could close the dialog and redirect afterwards instead:
>
>     dialog.close(target);
>     target.appendJavaScript(|"window.location ='http://www.yoururl.com
> ';");|
>
> Have fun
> Sven
>
>
>
> Am 20.02.2018 um 18:42 schrieb Jorge Fernandez:
>
>> Hi,
>>
>> I am trying to handle a RestartResponseException within a Modal window in
>> my application. I would like to be redirected without the
>> UnloadConfirmation. I prefer not to use showUnloadConfirmation(boolean)
>> because I only want to bypass it in this specific case and enable it for
>> others. Any ideas on how this can be achieved?
>>
>> Thanks
>>
>>
>

Re: RestartResponseException within Modal window

Posted by Sven Meier <sv...@meiers.net>.
Hi,

do you really need to use a RestartResponseException?

You could close the dialog and redirect afterwards instead:

     dialog.close(target);
     target.appendJavaScript(|"window.location 
='http://www.yoururl.com';");|

Have fun
Sven


Am 20.02.2018 um 18:42 schrieb Jorge Fernandez:
> Hi,
>
> I am trying to handle a RestartResponseException within a Modal window in
> my application. I would like to be redirected without the
> UnloadConfirmation. I prefer not to use showUnloadConfirmation(boolean)
> because I only want to bypass it in this specific case and enable it for
> others. Any ideas on how this can be achieved?
>
> Thanks
>