How can I switch to a state of a togglePanel by clicking a link?something like:
<a4j:commandLink onclick="TogglePanel.switch("show")" value="DoAction" action="...">
Use rich:toggleControl.