Hello,
I have regular tree nodes with attached command links.
<rich:treeNode id="testNode"> <h:panelGrid id="panelGrid" columns="3" class="menuAction"> <h:panelGroup id="panelGroup1" layout="block" styleClass="name_navigation1"> <a4j:commandLink styleClass="#{nodeRecursive.styleClass}" action="#{nodeRecursive.processViewPage}" actionListener="#{nodeRecursive.processViewAction}" eventsQueue="generalQueue" reRender="rightPage,nodeInfo,pageReloadId"> <h:outputText value="#{nodeRecursive.name}"/> </a4j:commandLink> </rich:treeNode>
i had a similiar problem. the way i got this to work was by putting a h:outputText component and a h:commandLink component with in the rich:treeNode component tags. on my backing logic i would decide to render one or the other. i also turned on toggleOnClick.