Eugene,
If you use an AjaxLink, the validators won't be trigered.
Instead, you must use an AjaxButton like that :
yourForm.add(new AjaxButton("submitMe") {
protected void onSubmit(final AjaxRequestTarget varTarget, final Form<?>
varForm) {
yourAjaxDownload.initiate(varTarget);
}
protected void onError(final AjaxRequestTarget varTarget, final Form<?>
varForm) {
super.onError(varTarget, varForm);
varTarget.addComponent(yourFeedbackPanel);
}
});
Regards,
Gabriel
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Erase-Previous-Error-Messages-in-Feedback-Panel-after-Download-tp3311648p3317941.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]