Wicket
  1. Wicket
  2. WICKET-5101

Could not open second modal window after closing first

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.12.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:

      Description

      Precondition: first modal window is opened.
      It has ajax submit form inside.

      After submitting form inside modal I want to open another modal with another content.

      I debugged wicket ajax response and found,
      that script, witch should close first window, closes second instead.

      I attached wicket-ajax-response.js to demonstrate the problem.

      wicket ajax engine correct runs those two functions, but "win.current.close();" at line 16
      actually closes second window, opened at line 40.

      See also
      https://issues.apache.org/jira/browse/WICKET-1576

      1. wicket-ajax-response.js
        1 kB
        Artem Morozov
      2. WICKET-5101.patch
        3 kB
        Andrea Del Bene
      3. modalFormClose.zip
        30 kB
        Artem Morozov

        Issue Links

          Activity

          Andrea Del Bene made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 7.0.0 [ 12322958 ]
          Fix Version/s 6.12.0 [ 12324889 ]
          Resolution Fixed [ 1 ]
          Andrea Del Bene made changes -
          Link This issue Is contained by WICKET-1771 [ WICKET-1771 ]
          Andrea Del Bene made changes -
          Assignee Andrea Del Bene [ bitstorm ]
          Martin Grigorov made changes -
          Link This issue is duplicated by WICKET-1771 [ WICKET-1771 ]
          Andrea Del Bene made changes -
          Attachment WICKET-5101.patch [ 12581156 ]
          Andrea Del Bene made changes -
          Attachment WICKET-5101.patch [ 12583134 ]
          Martin Grigorov made changes -
          Assignee Martin Grigorov [ mgrigorov ]
          Martin Grigorov made changes -
          Fix Version/s 6.8.0 [ 12324068 ]
          Martin Grigorov made changes -
          Fix Version/s 6.8.0 [ 12324068 ]
          Martin Grigorov made changes -
          Assignee Martin Grigorov [ mgrigorov ]
          Andrea Del Bene made changes -
          Attachment WICKET-5101.patch [ 12581156 ]
          Artem Morozov made changes -
          Attachment modalFormClose.zip [ 12573726 ]
          Artem Morozov made changes -
          Description Precondition: first modal window is opened.
          It has ajax submit form inside.

          After submitting form inside modal I want to open another modal with another content.

          I debugged wicket ajax response and found,
          that script, witch should close first window, closes second instead.

          I attached wicket-ajax-response.js to demonstrate the problem.

          wicket ajax engine correct runs those two functions, but "win.current.close();" at line 16
          actually closes second window, opened in line 40


          See also
          https://issues.apache.org/jira/browse/WICKET-1576
          Precondition: first modal window is opened.
          It has ajax submit form inside.

          After submitting form inside modal I want to open another modal with another content.

          I debugged wicket ajax response and found,
          that script, witch should close first window, closes second instead.

          I attached wicket-ajax-response.js to demonstrate the problem.

          wicket ajax engine correct runs those two functions, but "win.current.close();" at line 16
          actually closes second window, opened at line 40.


          See also
          https://issues.apache.org/jira/browse/WICKET-1576
          Artem Morozov made changes -
          Description Precondition: first modal window is opened.
          It has ajax submit form inside.

          After submitting form inside modal I want to open another modal with another content.

          I debugged wicket ajax response and found,
          that script, witch should close first window, closes second instead.




          See also
          https://issues.apache.org/jira/browse/WICKET-1576
          Precondition: first modal window is opened.
          It has ajax submit form inside.

          After submitting form inside modal I want to open another modal with another content.

          I debugged wicket ajax response and found,
          that script, witch should close first window, closes second instead.

          I attached wicket-ajax-response.js to demonstrate the problem.

          wicket ajax engine correct runs those two functions, but "win.current.close();" at line 16
          actually closes second window, opened in line 40


          See also
          https://issues.apache.org/jira/browse/WICKET-1576
          Artem Morozov made changes -
          Field Original Value New Value
          Attachment wicket-ajax-response.js [ 12573719 ]
          Artem Morozov created issue -

            People

            • Assignee:
              Andrea Del Bene
              Reporter:
              Artem Morozov
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development