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
in your panel:
final ModalWindow modal;
add(modal = new ModalWindow(modalAdvancedSearch));
add(new AjaxLink(openModal) {
@Override
public void onClick(AjaxRequestTarget target) {
modal.show(target);
}
});
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]
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
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) {
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:
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
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