It's not forcedID, it's forceID=[true | false]. I.e. set it to true to guide MyFaces to leave the id as is, to whatever you've set it to. Granted, the name is misleading IMHO as well.
Kalle > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 07, 2005 7:44 AM > To: MyFaces Discussion > Subject: ForcedID is not working > > Hi everybody, > > I need specific, predictable IDs for the links in my tree2-component. > Therefore I played a little bit with forcedID and > forcedIDIndex; for example I tried something like this: > > <x:tree2 value="#{currentUser.myTree}" id="myTree" var="node" > varNodeToggler="t"> > <f:facet name="category"> > <x:commandLink actionListener="#{t.setNodeSelected}" > action="#{currentUser.userSelectsCategory}" > immediate="true" [...]> > <x:outputText > value="#{node.description}" > > forceIdIndex="category-#{node.identifier}" > > forceId="category-#{node.identifier}"/> > [...] > > I need this predictable IDs because I want to adress the > tree-links in the HTML-page with a javascript-methods > (something like: > "document.anchors[category-4711].xyz.."). > > But I always get these extremly ugly jsf-specific IDs with > "_" and ":" and so on. Therefore I can not use something like > "document.anchors[category-4711].xyz.." because the IDs are > still dynamicly generated... > > What am I doing wrong??? > > Greetings, > hendrik >

