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

Form inside ModalWindow causes 'Submit Button not visible' exception in parent page's form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.12
    • 1.4.13, 1.5-M3
    • wicket, wicket-extensions
    • None
    • Problem seems affect Firefox (ver 3.6.10) and Opera (ver 10.62). Chrome it's ok (ver. 6).

    Description

      We've got a page with a wicket form and just one submit button. When we press return key in a form field the form is submitted
      with no problem. Inside form we have one link that opens a ModalWindow via ajax.
      This window contains another wicket form which is submitted by a IndicatingAjaxButton.

      The problem comes when we hit return key on parent page's form after we've opened and closed ModalWindow. In this case we get the following exception:

      "org.apache.wicket.WicketRuntimeException: Submit Button <window's button name>
      is not visible".

      It seems that even if we have closed window, its submit button is still be active.

      Attachments

        1. BugQuickStart.zip
          3.00 MB
          Andrea Del Bene
        2. patch.txt
          0.4 kB
          Pedro Santos

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: