I'm using RichFaces 4 M4 and I'm using the rich:collapsiblePanel. I want to change the header text when the panel is expanded and collapsed. For example; when the panel is expanded I'd like it to display 'Hide Details', and when it is collapsed I'd like it to display 'Show Details'.
Is there some simple JavaScript that I can add to have this happen?
Thanks for the help...