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

Reply via email to