you can use that yourFormComponent.setEnabled( false );

François

Le 11 oct. 2012 à 14:55, l yeung <lenming.ye...@gmail.com> a écrit :

> 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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to