I have this a link within the header of a simpleTogglePanel:
<rich:simpleTogglePanel switchType="client"> <f:facet name="header"> <a4j:commandLink value="Click"> </facet> ... </rich:simpleTogglePanel>
add onclick="Event.stop(event)" to your link.