panelBarItem « RichFaces « JSF Q&A

1. How to determine active panelBarItem in RichFaces

I am using the RichFaces panelBar and would like to determine the active panelBarItem at any given point in time. Could you suggest a way of doing so? Thanks in advance! MD

2. Howto set focus in Rich Faces panelBarItem?

Hi I want to set focus on <h:inputText> element whenever rich:panelBarItem is opened. I have:

   <rich:panelBarItem onenter="setFocus();">
      <h:inputText value="#{bean.value}"/>
   </rich:panelBarItem>  ...