Code: Select all
<p:tree value="#{portalController.portalTree}" var="node" dynamic="false" style="padding-top: 5px">
<p:treeNode rendered="false"></p:treeNode>
<p:treeNode type="role" styleClass="folderStyle">
<h:outputText value="#{node['name']}" styleClass="nodeContent"/>
</p:treeNode>
<p:treeNode type="application" styleClass="documentStyle">
<h:outputLink value="#{node['url']}" target="_blank" style="text-decoration: none">
<h:outputText value="#{node['name']}" styleClass="nodeContent"/>
</h:outputLink>
</p:treeNode>
</p:tree>
The problem is that I need to be able to support use of the keyboard only (for Section 508 accessibility). Right now i'm able to select and expand nodes using the arrow keys, but nothing happens when I push enter (to open a link). Any ideas or suggestions?