You have to use AjaxSubmitButton if you put panel into modal window.

-Matej

On Tue, Mar 18, 2008 at 12:16 PM, Kai Mütz <[EMAIL PROTECTED]> wrote:
>
>
>
>  Serzhas wrote:
>  >
>  > Hi. I am complete newby to Wicket, and currently making my way through the
>  > "forest" if Wicket API :) <br/>
>  > Today I tryed to create a "proof-of-concept" for new Wicket component, and
>  > found some strange behavior of ModalWindow that is based on component
>  > (Panel), and put within <form> tag.
>  > To put in short my page hierarchy looks like this:
>  > DOCUMENT (HTML)
>  >   FORM
>  >     MODAL_WINDOW
>  >        INNER_FORM (DIV)
>  >           SOME_TEXT_FIELDS
>  >           SUBMIT
>  > When I just open ModalWindow (MW) and close it right away, it closes as
>  > espected. But if I submit inner form prior to closing MW, it will stay
>  > open, and there is no way to close it other than to reload entire page.
>  > However, all events fires as espected, MW closing JavaScript runs (I added
>  > alert() to it), and MW itself reports as isShown() == false.
>  > If I either remove top-most form, or use Page based MW instead of
>  > component (just changing content class ancestor from Panel to WebPage and
>  > slightly altering constructor by removing Id), everything works just fine.
>  > Any suggestions will follow? Thanks in advance.
>  >
>  >
>
>  I have the same problem. Do you have found a solution?
>
>  Kai
>  --
>  View this message in context: 
> http://www.nabble.com/ModalWindow-%28component-based%29-%2B-form-submit-%3D-can%27t-close-tp15831226p16118824.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to