RE: jQuery form validation with wicket ajax

2012-02-15 Thread Paul Jackson
, but on the onSubmit method of the wicket ajax button the AjaxRequestTarget is null so the component to refresh cannot be added. Gerrit -Urspr√ľngliche Nachricht- Von: Paul Jackson [mailto:paul.jack...@cdl.co.uk] Gesendet: Dienstag, 14. Februar 2012 10:38 An: users@wicket.apache.org

RE: Wicket jQuery Validator integration

2012-02-15 Thread Paul Jackson
We do something very similar to this, and agree that it works really well. We also use JSR303 annotations on our domain models and use them to drive adding both wicket and jquery validators. We have a bunch of ValdiationConfiguration classes that know what to add to the markup and javascript to

RE: jQuery form validation with wicket ajax

2012-02-14 Thread Paul Jackson
. class=ajaxLink, and then apply the technique to $(form .ajaxLink). On Mon, Feb 13, 2012 at 3:55 AM, Paul Jackson paul.jack...@cdl.co.uk wrote: We use an OnBeforeRenderListener to add onClick events to the buttons and ajax buttons on a form that we want to be validated. We have to handle

RE: jQuery form validation with wicket ajax

2012-02-13 Thread Paul Jackson
We use an OnBeforeRenderListener to add onClick events to the buttons and ajax buttons on a form that we want to be validated. We have to handle the normal buttons and ajax buttons slightly differently. Ajax button: button.add(new AttributeModifier(onclick, new ModelString(if (!

Interaction betwen IAjaxRegionMarkupIdProvider, renderPlaceholderTag and visibility

2011-03-25 Thread Paul Jackson
Hi, I've just discovered what I think is a bug with IAjaxRegionMarkupIdProvider. We are using it on a Behavior that provides a border to form components (label, mandatory marker, etc), which for the most part works great. We have encountered a problem when toggling the visibility of a form