Page Edited :
WICKET :
Fancy Validation using AJAX, Alternatives to FeedbackPanel
Fancy Validation using AJAX, Alternatives to FeedbackPanel has been edited by Jeremy Levy (Dec 04, 2006). Content:If you want to have a more "web 2.0" validation on your forms here is a quick way to do it: Using the Wicket Example: Ajax Builtin: FormPage as a base, the onError method is called if any of your validators fail, in there you need to view the children components attached to your form and check the isValid() method on each one. A really easy to do this is the following: protected void onError(final AjaxRequestTarget target, Form form) { // Safe way to view the children components... Unknown macro: {
target.addComponent(formComponent);
target.appendJavascript("new Effect.Shake($(" + formComponent.getMarkupId() + "));"); }
|
Unsubscribe or edit your notifications preferences