Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Nili Adoram
Indeed there was an error since I put an tag for the AjaxSubmitLink inside the markup instead of tag. I fixed the markup and now the form is submitted, the modal window is closed and the window closed callback is invoked. Thank you, Nili Matej Knopp wrote: > Can you please check your log? P

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Matej Knopp
Can you please check your log? Probably there will be an exception. Can you post the stacktrace? -Matej Nili Adoram wrote: > I tried replacing the original SubmitLink in the form with an > AjaxSubmitLink: > > public class AdvancedSearchForm extends Form { > > private static final String i

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
I tried replacing the original SubmitLink in the form with an AjaxSubmitLink: public class AdvancedSearchForm extends Form { private static final String id = "advanedSearchFrom"; public AdvancedSearchForm(IModel model) { super(id, model); add(new TextField("name")

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Matej Knopp
You have to use AjaxSubmitLink and call Window.close(target) inside the onSubmit(AjaxRequestTarget...) method. -Matej Nili Adoram wrote: > Hi all, > > I have a panel (named AdvancedSearchPanel) containing a Form with a > SubmitLink. > > I open this panel inside a modal dialog: > > fi

Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Carfield Yim
I just get the problem, solved by using ajax form button, you can see how I solve it at http://www.nabble.com/Submit-a-form-at-ModalWindow-cause-the-ModalWindow-close.-tf2912895.html#a8139020 On 1/9/07, Nili Adoram <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a panel (named AdvancedSearchPanel

[Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
Hi all, I have a panel (named AdvancedSearchPanel) containing a Form with a SubmitLink. I open this panel inside a modal dialog: final ModalWindow modal; add(modal = new ModalWindow("modalAdvancedSearch")); final AdvancedSearchPanel searchPanel = new AdvancedSearchPane