In addition to this, it seems that non of the javascript (links on the
node) works. Should the javascript codes be generated in the HTML or
should it be referenced as a .js file?
Thanks
Long
Long Tran wrote:
All,
I've created a TreeModel and successfully rendered it on the browser,
however, when I click on the expand/collapse button, it's not working.
Apparently, in the HTML page generated, javascript function
"treeNavClick" was not generated, is there any tag/attribute i need to
add to the Tree2 component?
Hers is my Jsp:
<f:view>
<t:tree2 id="myTree" showNav="true"
rendered="#{LovBackingBean.lovTree!=null}"
showRootNode="false" var="node" value="#{LovBackingBean.lovTree}"
varNodeToggler="t">
<f:facet name="rootNode">
<h:panelGroup>
<h:outputText value="#{node.description}"/>
</h:panelGroup>
</f:facet>
<f:facet name="topNode">
<h:panelGroup>
<h:outputText value="#{node.description}"/>
</h:panelGroup>
</f:facet>
<f:facet name="childNode">
<h:panelGroup>
<h:outputText value="#{node.description}"/>
</h:panelGroup>
</f:facet>
</t:tree2>
</f:view>