[Wicket-user] Help: modalwindow question

2007-06-14 Thread Crag
An open modalwindow, when the form had been submmitted, I want to refresh parent window , and close current window, how to do ? the simple code: html head/head body form wicket:id=nodeForm table tr td input wicket:id=name type=text / /td /tr tr td

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Nili Adoram
in your panel: final ModalWindow modal; add(modal = new ModalWindow(modalAdvancedSearch)); add(new AjaxLink(openModal) { @Override public void onClick(AjaxRequestTarget target) { modal.show(target); } });

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Crag
thanks Nili. but it's not my meaning. An open modalwindow has a form, when the form had been submmitted( where form onSubmit( ) I will do something here), I want to refresh parent window , and close current window, how to do ? Nili Adoram [EMAIL PROTECTED] news:[EMAIL PROTECTED]

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Crag
sorry. An opener modalwindow has a form, when the form onSubmit( ) , I want to refresh parent window , and close current window, how to do ? Crag [EMAIL PROTECTED] news:[EMAIL PROTECTED] thanks Nili. but it's not my meaning. An open modalwindow has a form, when the form had

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Nili Adoram
add AjaxSubmitButton to the form embedded inside the modal window: AjaxSubmitButton submit = new AjaxSubmitButton(submitSearch, AdvancedSearchForm.this) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) {

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Matej Knopp
You need to use AjaxSubmitButton inside the modal window. And to refresh the parent window you need to add WindowClosedCallback to it, just like in the wicket-examples. -Matej On 6/14/07, Nili Adoram [EMAIL PROTECTED] wrote: add AjaxSubmitButton to the form embedded inside the modal window:

Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Crag
I see, thanks all~:-) Matej Knopp [EMAIL PROTECTED] news:[EMAIL PROTECTED] You need to use AjaxSubmitButton inside the modal window. And to refresh the parent window you need to add WindowClosedCallback to it, just like in the wicket-examples. -Matej On 6/14/07, Nili Adoram [EMAIL

[Wicket-user] Help: modalwindow question

2007-06-13 Thread Crag
An open modalwindow, when the form had been submmitted, I want to refresh parent window , and close current window, how to do ? the simple code: html head/head body form wicket:id=nodeForm table tr td input wicket:id=name type=text / /td /tr tr td