Title: Message
You add a action or actionListener to the facet:
 
<f:facet name="document">
    <h:panelGroup>
        <h:commandLink immediate="true"
            styleClass="#{t.nodeSelected ? 'documentSelected':'document'}"
            action="" actionListener="#{t.setNodeSelected}" target="content area">
            <t:graphicImage value="/images/document.png" border="0"/>
            <h:outputText value="#{node.description}"/>
            <f:param name="docNum" value="#{node.identifier}"/>
        </h:commandLink>
    </h:panelGroup>
</f:facet>
-----Original Message-----
From: Urciolo, Kevin [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 7:13 AM
To: MyFaces Discussion
Subject: RE: Tree2 As Clickable Menu

I should add that I currently get the following exception when I click on a document:
java.lang.IllegalArgumentException: Node with id 0:0:4. Failed to parse 0:0:4
	org.apache.myfaces.custom.tree2.TreeModel.getNodeById(TreeModel.java:153)
	org.apache.myfaces.custom.tree2.TreeModel.setNodeId(TreeModel.java:71)


From: Urciolo, Kevin [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 9:51 AM
To: [email protected]
Subject: Tree2 As Clickable Menu

Howdy, I am relatively new to JSF.  I am attempting to use Tree2 as a menu that changes the content area of a page when documents are clicked.  Can someone give me some code snips on how to do this?  I have the tree2 setup and displaying.  However, I haven't figured out how to set the individual actions for each document when they are clicked.

Thanks.



*********************************************************************
This message and any attachments are solely for the intended recipient. If you are not the intended recipient, disclosure, copying, use or distribution of the information included in this message is prohibited -- Please immediately and permanently delete.

Reply via email to