Do any of the core validators actually implement this interface?
I have an issue filed in JIRA for the StringValidator.maximumLength()
validator to append the maxlength HTML attribute to form components.
https://issues.apache.org/jira/browse/WICKET-1310

This seems like a perfect place to implement this feature.

On Mon, Jun 30, 2008 at 12:53 PM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> > That's why we introduced IValidatorAddListener in the past if I
> > remember correctly. I validator that implements IValidatorAddListener
> > can add behaviors in the onAdded method, so it is already possible to
> > design validators that take care of both server- and client side
> > validation.
>
> Javadocs from that class:
>
> public interface IValidatorAddListener extends IClusterable
> {
>        /**
>         * Called right after a validator is added to a [EMAIL PROTECTED] 
> Form} or
> [EMAIL PROTECTED] FormComponent}. A common
>         * use case for implementing this interface is for validators to add
> behaviors to implement
>         * client-side validation capabilities, e.g. through JavaScript,
> Ajax
> or just by adding a simple
>         * attribute modifier that sets a "maxlength" attribute.
>         *
>         * @param component
>         *            a <code>Component</code> to which the validator was
> just added
>         */
>        void onAdded(Component component);
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to