You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Russell Morrisey (JIRA)" <ji...@apache.org> on 2011/04/21 16:26:05 UTC
[jira] [Updated] (WICKET-3630) Patch to make ModalWindow's
WindowClosedBehavior extensible
[ https://issues.apache.org/jira/browse/WICKET-3630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Russell Morrisey updated WICKET-3630:
-------------------------------------
Attachment: (was: ModalWindow.java.patch)
> Patch to make ModalWindow's WindowClosedBehavior extensible
> -----------------------------------------------------------
>
> Key: WICKET-3630
> URL: https://issues.apache.org/jira/browse/WICKET-3630
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-extensions
> Affects Versions: 1.4.17
> Reporter: Russell Morrisey
> Labels: IAjaxCallDecorator, ModalWindow, WindowClosedBehavior
> Attachments: ModalWindow.java.patch
>
>
> This change lets me replace the WindowClosedBehavior with a custom implementation, and preserves the code in getWindowOpenJavascript() that manages the javascript setting by using an interface. The body of the behavior's respond() method is made a member of ModalWindow, so that it can be called by custom implementers.
> Use cases:
> -Add an IAjaxCallDecorator w/script which disables UI controls on the containing page while the window closed behavior is being processed
> -Substitute a behavior which submits the form on the containing page after the modal window is closed
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira