Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3630

Patch to make ModalWindow's WindowClosedBehavior extensible

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        1. windowclosebehavior.zip
          6.16 MB
          Russell Morrisey
        2. ModalWindow.java.patch
          4 kB
          Russell Morrisey

        Activity

          People

            jthomerson Jeremy Thomerson
            rmorrisey Russell Morrisey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: