My guess is no.

One thing you could do is add a validator to some other
EditableValueHolder component on your page, but have the validator
check the dataTable constraint instead of the EVH component.  You
could create a "for" attribute (like t:dataScroller or
t:equalsValidator) that points to the correct component to check.

It might be worthwhile to create a "globalValidationHolder" component
that simply holds validators like this, implements EVH, and does
nothing else.

Another option is to perform the check in your action methods.  The
downside to this is that you'd have to check it for every possible
action or actionlistener.

On 10/25/05, Navid Vahdat <[EMAIL PROTECTED]> wrote:
> Hello Everyone!
>
> I see, that custom validators are used together with
> EditableValueHolders. I need to test weather the number of rows in a
> DataTable matches a given constraint. Is there any way to add a
> Validator to a DataTable?
>
> Cheers,
> Navid
>

Reply via email to