The JSFUnit API always searches for ID's based on a simple match of the ClientID suffix you passed in. So sometimes, that suffix can match more than one ClientID. However, the full ClientID will always be unique and the DuplicateClientIDException will tell you about all the matches. Se more info here:
So in your case, you need to pass in either "0:editCurrentAnimalItem" or "1:editCurrentAnimalItem".
I tried your advise but another error appear:
"HTTP Status 500 -
type Exception report
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
javax.servlet.ServletException: java.lang.IllegalArgumentException: 1:editCurrentAnimalItem
note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server 9.1_02 logs."
About more my problem, if I only have one row in table, it's OK. But when I have more than one row, it's error. I think that when I have many rows, the table will set ID="editCurrentAnimalItem" loop for every row, so the method don't know get which id.
Thank for your help
Sorry, I've mistaked. Now It's ok.
Thanks for your help