Wicket
  1. Wicket
  2. WICKET-1120

Problem closing a ModalWindow when used through an IFrame

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-rc1
    • Fix Version/s: 1.3.5, 1.4-RC1
    • Component/s: wicket
    • Labels:
      None

      Description

      I'm doing some POC testing to find out how a wicket application could be used through an IFrame and noticed that closing of a ModalWindow fails.

      My setup:

      Application A:
      -a dummy html page that has an IFrame
      -the contents of the IFrame is requested from Application B
      <iframe src="http://localhost:8080/mywicketapp/app/" width="100%" height="500"></iframe>

      Application B:
      -a Wicket application that uses a ModalWindow
      -deployed to tomcat: http://localhost:8080/mywicketapp/

      Problem:
      The ModalWindow is not closed when OK ( or Cancel ) button is clicked when Application B is used throug IFrame of Application A.
      OK button performs the actual action (in my case deletes an item from a list) but is not closed after the execution of the action.

      Closing of the ModalWindow works normally when Application B is not used through an IFrame.

      Reproducing the problem:

      You can test this by creating a html page with this source:

      <html>
      <body>
      <iframe src="http://www.wicket-library.com/wicket-examples/ajax/modal-window.1" width="100%" height="100%"></iframe>
      </body>
      </html>

      And then open "Show modal dialog with panel" and try to close the dialog.

        Activity

        Matej Knopp made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.3.5 [ 12313175 ]
        Martijn Dashorst made changes -
        Fix Version/s 1.4-M4 [ 12313295 ]
        Fix Version/s 1.4-M3 [ 12312912 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.4-M2 [ 12312911 ]
        Fix Version/s 1.4-M3 [ 12312912 ]
        Frank Bille Jensen made changes -
        Fix Version/s 1.4-M1 [ 12312523 ]
        Fix Version/s 1.4-M2 [ 12312911 ]
        Matej Knopp made changes -
        Fix Version/s 1.3.0-rc2 [ 12312513 ]
        Priority Blocker [ 1 ] Major [ 3 ]
        Fix Version/s 1.4.0-alpha [ 12312523 ]
        Johan Compagner made changes -
        Fix Version/s 1.3.0-rc2 [ 12312513 ]
        Component/s wicket-extensions [ 12311421 ]
        Assignee Matej Knopp [ knopp ]
        Component/s wicket [ 12311420 ]
        Affects Version/s 1.3.0-rc1 [ 12312818 ]
        Deepak Mahavishnu made changes -
        Field Original Value New Value
        Description I'm doing some POC testing to find out how a wicket application could be used through an IFrame and noticed that closing of a ModalWindow fails.

        My setup:

        Application A:
        -a dummy html page that has an IFrame
        -the contents of the IFrame is requested from Application B
        <iframe src="http://localhost:8080/mywicketapp/app/" width="100%" height="500"></iframe>

        Application B:
        -a Wicket application that uses a ModalWindow
        -deployed to tomcat: http://localhost:8080/mywicketapp/


        Problem:
        The ModalWindow is not closed when OK ( or Cancel ) button is clicked when Application B is used throug IFrame of Application A.
        OK button performs the actual action (in my case deletes an item from a list) but is not closed after the execution of the action.

        Closing of the ModalWindow works normally when Application B is not used through an IFrame.

        I'm doing some POC testing to find out how a wicket application could be used through an IFrame and noticed that closing of a ModalWindow fails.

        My setup:

        Application A:
        -a dummy html page that has an IFrame
        -the contents of the IFrame is requested from Application B
        <iframe src="http://localhost:8080/mywicketapp/app/" width="100%" height="500"></iframe>

        Application B:
        -a Wicket application that uses a ModalWindow
        -deployed to tomcat: http://localhost:8080/mywicketapp/


        Problem:
        The ModalWindow is not closed when OK ( or Cancel ) button is clicked when Application B is used throug IFrame of Application A.
        OK button performs the actual action (in my case deletes an item from a list) but is not closed after the execution of the action.

        Closing of the ModalWindow works normally when Application B is not used through an IFrame.

        Reproducing the problem:

        You can test this by creating a html page with this source:

        <html>
        <body>
        <iframe src="http://www.wicket-library.com/wicket-examples/ajax/modal-window.1" width="100%" height="100%"></iframe>
        </body>
        </html>

        And then open "Show modal dialog with panel" and try to close the dialog.

        Deepak Mahavishnu created issue -

          People

          • Assignee:
            Matej Knopp
            Reporter:
            Deepak Mahavishnu
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development