I'm not sure about the problem at your hand, 
But I have found it extremely helpful and clean in assigning the IDs
myself to all the components in a page. It helps in debugging too.

-----Original Message-----
From: Richard Wallace [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 08, 2005 2:58 PM
To: MyFaces Discussion
Subject: Tracking down duplicate ids


Hey everybody,

Got a nasty little problem that I'm not sure what the best way to go 
about solving it is.  I've got a page with a couple of dataTables and a 
couple of forms on it.  One form and dataTable is for one type of object

and the other form and dataTable are for another type of object.  The 
forms are for adding new instances.

The problem I'm running into is that after adding an instance of either 
type I get these exceptions:

javax.faces.FacesException: cannot add component with id '_id55' and 
path : {Component-Path : [Class: 
javax.faces.component.html.HtmlOutputText,Id: _id55]} to its parent 
component. This might be a problem due to duplicate ids.

On most of the elements I'm just letting myfaces generate the ids, so 
I'm not sure how this is happening.  If I just goto the url directly 
after doing the add it works fine and the new entries are shown.

What's the best way to track down what is actually causing this?  Should

I just start giving ids to all my jsf elements or what?

Thanks,
Rich




Confidentiality Notice 

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to