Hello,
I have a complicated problem here adn hoping for your bright ideas about my
problem. My problem is, how can can I process the codes after i get the
value from modal window..to be more accurate here is some code snippet:
a modal windows snippet:
modalWindow.setWindowClosedCallback(new ModalWindow.WindowClosedCallback(){
public void onClose(AjaxRequestTarget target) {
// enter this method when
modalWindow.close(target) method called
System.out.println("Get value =
"+modalWindow.getModelObjectAsString());
set_validated(Boolean.valueOf(modalWindow.getModelObjectAsString()));
}
});
indicating ajaxbutton code snippet:
@Override
protected void onSubmit(AjaxRequestTarget target, Form
form) {
localOverride.show(target);
if(is_validated()){
final Test test= (Test)
form.getModelObject();
testService.save(test);
setResponsePage(new AckPage(test));
}
}
...how can get first the value in modal window before i process the codes
inside button's onSubmit() method.Of course i can make method on modal
window setWindowClosedCallback method but I wnat it in button onSubmit
method before the user saves the model It will wait the value from the modal
window if its true or false...i hope i make myself clear..Any
suggestions/comments/ideas ????
Thanks a lot...Cheers
--
View this message in context:
http://www.nabble.com/How-to-delay-or-customized-button-onSubmit%28%29-method-tp16696645p16696645.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]