You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by PDiefent <pd...@csc.com> on 2014/02/14 23:03:56 UTC

Leaving page after closing modal results in browser pop up

Hi,
with the current Wicket 6.13.0 I got a new problem. When leaving a page
after openin a modal window results in a browser pop up where I have to
confirm leaving the page. If I leave the page without opening the modal
window the browser doesn't request a confirmation.

Any suggestions?

Thanks, Peter 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Leaving page after closing modal results in browser pop up

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

It is fixed soon after 6.13.0 has been released -
https://issues.apache.org/jira/browse/WICKET-5469

Martin Grigorov
Wicket Training and Consulting


On Sat, Feb 15, 2014 at 10:44 PM, PDiefent <pd...@csc.com> wrote:

> Hi Paul,
> yes, this works. But why didn't I need it in former Wicket releases?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664484.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Leaving page after closing modal results in browser pop up

Posted by PDiefent <pd...@csc.com>.
Hi Paul,
yes, this works. But why didn't I need it in former Wicket releases?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664484.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Leaving page after closing modal results in browser pop up

Posted by Paul Bors <pa...@bors.ws>.
Have you tried setting this on your page?

    <wicket:head>
        <script>Wicket.Window.unloadConfirmation = false;</script>
    </wicket:head>

It should work, and if you want to apply it to all of the modal pop-ups in
your app, consider using a header contribution that you would add to your
parent page.

~ Thank you,
   Pau Bors


On Sat, Feb 15, 2014 at 9:02 AM, PDiefent <pd...@csc.com> wrote:

> Hi Ernesto, I didn't try because with former versions of Wicket the
> confirmation doesn't rise.
> The problem seams to exist since Wicket 6.13.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664475.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Leaving page after closing modal results in browser pop up

Posted by PDiefent <pd...@csc.com>.
Hi Ernesto, I didn't try because with former versions of Wicket the
confirmation doesn't rise.
The problem seams to exist since Wicket 6.13.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471p4664475.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Leaving page after closing modal results in browser pop up

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

Did you try ModalWindow#showUnloadConfirmation?


On Fri, Feb 14, 2014 at 11:03 PM, PDiefent <pd...@csc.com> wrote:

> Hi,
> with the current Wicket 6.13.0 I got a new problem. When leaving a page
> after openin a modal window results in a browser pop up where I have to
> confirm leaving the page. If I leave the page without opening the modal
> window the browser doesn't request a confirmation.
>
> Any suggestions?
>
> Thanks, Peter
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Leaving-page-after-closing-modal-results-in-browser-pop-up-tp4664471.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro