IValidator is added as Behavior in the component.
To be able to receive the notification do something like:

MyValidator extends Behavior implements IValidator {

  protected void onBind(Component) {
   // add your logic here
  }

}

This wont if you use any of the standard Wicket validators. For this case
you'll need to override Form#add(IFormValidator) and/or
FormComponent#add(IValidator).
See https://gist.github.com/791314


I'll file a ticket to improve that.


On Sat, Jan 22, 2011 at 6:51 PM, Willis Blackburn <wbo...@panix.com> wrote:

>
> It has gone missing between 1.5-RC1 and 1.5-M3.  Is there a replacement of
> some kind?
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/What-happened-to-IValidatorAddListener-tp3231645p3231645.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to