How about this: Why not store the Ids as a map mapping a clientId to a component. Then, you can just pull the component out of the map (if one exists), and check for equivalence. if they are equal, no problems.
On Sun, 9 Jan 2005 16:57:11 -0500, Sean Schofield <[EMAIL PROTECTED]> wrote: > I am making headway on the clientId issue but I am having a problem > enforcing the uniqueness of ids by the HTML renderer. > > I am storing each of the id's in an attribute in the view root (using > the getViewRoot method of FacesContext.) The problem is that every > other page refresh causes an exception because the id's already exist > in the attribute I'm using to store them. > > I believe this is because the second time the page loads it is > restoring the client tree from the state (and not rebuilding it.) > Apparently the attributes of the view are also restored. The renderer > is called each time the page is requested no matter what, so we get > the exception. > > I could always move my duplicate checking code outside of the renderer > but there are issues with that (I can elaborate if needed.) > > Does anyone have any ideas about how I could reset this attribute at > the beginning of the render request? I'd like to do it without > hard-coding the attribute somewhere. > > Thanks, > > sean > -- -Heath Borders-Wing [EMAIL PROTECTED]

