1 Reply Latest reply on Dec 9, 2008 6:53 AM by ilya_shaikovsky

    is there a way to rendere a <rich:panelBar  with none panelB

      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>
      


      Setting the selectedPanel attribute to a non existent panelBarItem does not help. Anybody knows how to do it?