I would like to render a panelBar with all panelBarItem closed and open one of them only on the respective click. Something simple like this:
<rich:panelBar>
<rich:panelBarItem label="Canon">
<rich:panel styleClass="menuTop">
<h:outputText value=""></h:outputText>
</rich:panel>
<h:form>
<rich:tree style="width:300px" value="#{library.data}" var="item"
nodeFace="#{item.type}">
<rich:treeNode type="artist" iconLeaf="/images/tree/singer.gif"
icon="/images/tree/singer.gif">
<h:outputText value="#{item.name}" />
</rich:treeNode>
<rich:treeNode type="album" iconLeaf="/images/tree/disc.gif"
icon="/images/tree/disc.gif">
<h:outputText value="#{item.title}" />
</rich:treeNode>
<rich:treeNode type="song" iconLeaf="/images/tree/song.gif"
icon="/images/tree/song.gif">
<h:outputText value="#{item.title}" />
</rich:treeNode>
</rich:tree>
</h:form>
<rich:panel styleClass="menuBottom">
<h:outputText value=""></h:outputText>
</rich:panel>
</rich:panelBarItem>
<rich:panelBarItem label="Nikon">
...
</rich:panelBarItem>
</richPanelBar>
https://jira.jboss.org/jira/browse/RF-5281
You could use panelMenu as a workaround. Define submitMode none for the items.