Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Matej Knopp
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

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Serzhas
Thanks Matej, but I have tryied many submit variants, AjaxSubmitButton was one of them. No matter what kind of submit I use, if form was submitted once, dialog won't close... Matej Knopp-2 wrote: You have to use AjaxSubmitButton if you put panel into modal window. -Matej On Tue, Mar

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Kai Mütz
Matej Knopp schrieb: You have to use AjaxSubmitButton if you put panel into modal window. No difference. I have tried AjaxSubmitButton, AjaxButton and AjaxSubmitLink. Once I have submitted the form, the modal window stays open. Reload of the entire page necessary to close modal. Is there

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Maurice Marrink
We use forms in our modal windows without problems. We do use Pages instead of panels and the form is submitted with an AjaxSubmitLink. Also the form is a FilterForm found in wicket-extensions but i don't think that should make a difference. Maybe this information is of some help to you. Maurice

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread Serzhas
I wrote about Pages in ModalWindow in my initial post :) This is the solution I currently using. But creation and popup of such ModalWindow is slower, than a Panel-based one. However, I also noticed, that with Page as content of ModalWindow dialog content is added to DOM only when it is opened,

Re: ModalWindow (component based) + form submit = can't close

2008-03-18 Thread SantiagoA
On the site that holds the ModalWindow I have something like that: modalWindow.setContent(new modalWindowPanel(modalWindow.getContentId(), new ModalWindow.CloseButtonCallback(){ private static final long serialVersionUID = 4622180781771170962L; public boolean