Re: Validating a DataTable

2005-10-25 Thread Navid Vahdat
Hi Volker! I'm currently implementing a Web-GUI for an application generated from a UML-meta-model. To model a 1:n or m:n relationship (general associations or compositions), I use a table, and additional Add- and Remove buttons. Now there are constraints on the association ends, like X must have

Re: Validating a DataTable

2005-10-25 Thread Volker Weber
Hello, i don't understand your intention. The purpose of a validator is to validate user input. Correct me if i'm wrong, but as i know it isn't possible for the user to change the rowcount of a datatable on client side. So what did you want to validate? regards Volker > >>Hello Everyone! >>

Re: Validating a DataTable

2005-10-25 Thread Mike Kienenberger
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

Validating a DataTable

2005-10-25 Thread Navid Vahdat
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