Overwrite getUpdateModel() to return false.

Sven

l yeung <lenming.ye...@gmail.com> schrieb:

>Hi,
>
>How do I veto textfield inputChanged()?
>I need to prevent this from happening inside
>AjaxFormComponentUpdatingBehavior("onchange").
>
>protected void onUpdate(AjaxRequestTarget target) {
>    String name = getModelObject().getName();
>    if (query(name) == null) {
>        // veto value change for this field.
>    } else {
>        // refresh form
>    }
>}
>
>I would like to prevent any value change propagated to my domain object
>while inside ajax onchange.
>
>Thanks in advance.
>
>Cheers

Reply via email to