Wicket
  1. Wicket
  2. WICKET-1771

Cant close an old ModalWindow and open a new in one AjaxRequest

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: wicket-extensions
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      I have a ModalWindow for some confirmation action. After that confirmation, i want to close the window and open an other modalwindow. The ConfirmWindow can be also opened from a ModalWindow. So i need this extra ModalWindow.

      The Problem: The Close javascript uses a timeout, but the open -javascript dont.

      My fix for this solution:

      private String getWindowOpenJavascript(){...

      postProcessSettings(buffer);

      buffer.append("window.current.setTimeout(function()

      { Wicket.Window.create(settings).show(); }

      , 0);\n");

      return buffer.toString();

      ..

        Issue Links

          Activity

          Martin Sachs created issue -
          Martin Grigorov made changes -
          Field Original Value New Value
          Link This issue duplicates WICKET-5101 [ WICKET-5101 ]
          Martin Grigorov made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Andrea Del Bene made changes -
          Link This issue contains WICKET-5101 [ WICKET-5101 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Martin Sachs
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development