<rich:simpleTogglePanel width="200"> <f:facet name="header"> <h:panelGroup id="header" style="width:100%" layout="block"> <h:outputText value="test"/> <rich:toolTip styleClass="class"> <h:outputText value="test"/> </rich:toolTip> </h:panelGroup> </f:facet> <h:outputText value="test"/> </rich:simpleTogglePanel>
works as you need for me.
I played around the tooltip a little bit. I found that toolTip has to be included in a JSF component such as h:panelGroup, tomahawk:div. If it is included inside a plain html element (I uses facelet) like span, div with an id, the tooltip may not behave as is expected.
tooltip searches for the closier parent component in JSF tree. So your plain html elements not saved there. And the tooltip found next parent.