> 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