-
1. Re: DuplicateClientIDException
ssilvert Jun 19, 2008 7:16 AM (in response to ssilvert)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:
http://wiki.jboss.org/wiki/UsingComponentIDs
So in your case, you need to pass in either "0:editCurrentAnimalItem" or "1:editCurrentAnimalItem".
Stan -
2. Re: DuplicateClientIDException
halylam Jun 19, 2008 9:18 PM (in response to ssilvert)Hi Stan,
I tried your advise but another error appear:
"HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.IllegalArgumentException: 1:editCurrentAnimalItem
root cause
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
HaLy -
3. Re: DuplicateClientIDException
halylam Jun 19, 2008 9:27 PM (in response to ssilvert)Hi Stan,
Sorry, I've mistaked. Now It's ok.
Thanks for your help
HaLy