9 Replies Latest reply on Aug 25, 2009 11:22 AM by Ilya Shaikovsky

    <rich:panelBar> which one is the selected panelBarItem ?

    Christo Twain Newbie

      Hi !

      I have a panelBar component with several panelBarItem which contain the page "editor.xhtml".
      I wonder if it's possible to inform the backing bean, used in the page "editor.xhtml", which is the selected panelbarItem ?

      mainPage.xhtml

      ...
      <rich:panelBar>
       <rich:panelBarItem label="Item 1">
       <a4j:include viewId="/pages/editor.xhtml"/>
       </rich:panelBarItem>
       <rich:panelBarItem label="Item 2">
       <a4j:include viewId="/pages/editor.xhtml"/>
       </rich:panelBarItem>
      </rich:panelBar>
      ...
      


      editor.xhtml

      ...
      <rich:editor theme="advanced" value="#{bean.text}"/>
      ...


      Thanks for your help :-)

      Chris