You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Pedro Santos (JIRA)" <ji...@apache.org> on 2010/10/04 14:09:33 UTC

[jira] Commented: (WICKET-3087) Form inside ModalWindow causes 'Submit Button not visible' exception in parent page's form

    [ https://issues.apache.org/jira/browse/WICKET-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12917568#action_12917568 ] 

Pedro Santos commented on WICKET-3087:
--------------------------------------

The modal window close method just sends to browser an javascript that closes the modal window, but maintain it's component html.
There is even some javascript on this close callback that reattach the component DOM on it's original parent.
I just can't see a good reason to maintain this invisible component DOM, since when user invoke the modal show method, it will to be rebuild anyway. In fact this is causing the stated problem. The user type the "enter" key at an form field, and the form visitor looking for the submit button reach an invisible button: the same button at the hidden modal window component DOM, that was listed in the submitted form parameters.

> Form inside ModalWindow causes 'Submit Button not visible' exception in parent page's form
> ------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3087
>                 URL: https://issues.apache.org/jira/browse/WICKET-3087
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-extensions
>    Affects Versions: 1.4.12
>         Environment: Problem seems affect Firefox (ver 3.6.10) and Opera (ver 10.62). Chrome it's ok (ver. 6).
>            Reporter: Andera Del Bene
>         Attachments: BugQuickStart.zip
>
>
>  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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.