myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Belagodu" <>
Subject tree2 commandLink
Date Tue, 21 Nov 2006 19:39:43 GMT
In using Myfaces 1.1.4, tomahawk 1.1.3, I'm trying to get the tree2
working for navigation. The menu system is created during the startup of
the application with the appropriate URLs. Since this menu system has to
be a reusable component, I can't use navigation rules to specify actions
for the tree2.


I started off with the sample tree2 and I'm modifying it to fit my
requirement. Here's the code to tree2 with the facet for the leaf node
(a commandLInk),


<f:facet name="document">


            <h:commandLink immediate="true" rendered="#{node.enabled}"

                        styleClass="#{t.nodeSelected ?



                        <t:graphicImage value="images/document.png"
border="0" />

                  <h:outputText value="#{node.description}" />






The TreeNode is constructed with the URL and the URL for the tree leaf
node is stored as 'identifier' in TreeNodeBase object. How do I use this
URL to navigate the menu structure and also reuse this tree in other
webpages for that session?



View raw message