You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Nitin Deshmukh <de...@yahoo.com> on 2008/02/19 21:33:25 UTC

Activate Validator for only edited rows in dataTable

Hi,

I have to show a huge list on the page and the data in
this list is editable. I am using datatable to display
this list and have inputText for the editable fields.
I have to validate one of the column for user id, so I
have a UIDValidator, which checks if the user id is
valid in the database. 
In the present scenario, the validator runs on every
user id field, every time goes and checks user id in
the database and that makes it slow. Sometimes the
list has 400-500 objects in it and then I have other
validators also. In such cases, it takes 4-5 minutes
to get to the next page, which is terrible.

I want to validate only those fields which were
changed by the user, is it possible to do it.Or should
I change the way I am handling the list. 
any suggestions/opinions are welcome.
Regards,
Nitin



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping