You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/07 14:06:58 UTC

[jira] [Resolved] (WICKET-2249) Modal Window: add overridable wantUnloadConfirmation() method

     [ https://issues.apache.org/jira/browse/WICKET-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-2249.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0

Added org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#showUnloadConfirmation(boolean).

The old JS setting 'Wicket.Window.unloadConfirmation' is still there for backward compatibility. Remove it from your code and use the new setting in ModalWindow. The old setting will be removed for the next major release (as early as Wicket 7.0).
                
> Modal Window: add overridable wantUnloadConfirmation() method
> -------------------------------------------------------------
>
>                 Key: WICKET-2249
>                 URL: https://issues.apache.org/jira/browse/WICKET-2249
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket-extensions
>    Affects Versions: 1.4-RC2
>            Reporter: Vladimir Kovalyuk
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.0.0
>
>
> currently if I want to disable the confirmation I have to add JS excerpt: Wicket.Window.unloadConfirmation = false;
> For the sake of OOD it should be primarily controlled via component itself. So adding an overridable method makes sense.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira