What is the my:ajaxTree element in the MyFaces Tree2 - Creating a lazy
loading tree guide?
Below, there is a reference to my:ajaxTree and my:ajaxCommandLink. I did
a Google search and nothing is referenced for these.
Thanks,
--Todd
<aa:zoneJSF id="contentMgmtTreeZone">
<my:ajaxTree
value="#{contentMgmtBean.treeModel}"
ajaxZone="contentMgmtTreeZone"
var="_node"
clientSideToggle="false"
varNodeToggler="t"
showRootNode="false">
<f:facet name="folder">
<t:panelGroup>
<t:graphicImage
styleClass="treeNodeIcon"
url="#{_node.expanded ?
'/images/contentMgmt/openfolder.gif' :
'/images/contentMgmt/closedfolder.gif'}" />
<t:outputText
styleClass="folderNodeText"
value="#{_node.name}" />
</t:panelGroup>
</f:facet>
<f:facet name="file">
<my:ajaxCommandLink
ajaxZone="contentMgmtTreeZone,myResultZone"
actionListener="#{contentMgmtBean.nodeSelected}"
styleClass="fileNodeLink#{
contentMgmtBean.currentFileName eq _node.name ?
' selectedNode' : ''}">
<t:updateActionListener
property="#{contentMgmtBean.currentFileName}"
value="#{_node.name}" />
<t:graphicImage
styleClass="treeNodeIcon"
url="/images/contentMgmt/file.gif" />
<t:outputText
styleClass="fileNodeText"
value="#{_node.name}" />
</ost:ajaxCommandLink>
</f:facet>
</my:ajaxTree>
</aa:zoneJSF>