I would like to sprite up a modalPanel using effects. Appearing and closing of the panels should use one of rich:effects.
I would™ like to open modalPanel using a button , like that :
<a4j:commandButton onclick="Richfaces.showModalPanel('mpm');" value="Shoe Panel" >
</a4j:commandButton>
<rich:modalPanel id="mpm">
<f:facet name="header"><h:outputText value="Modal Panel" /></f:facet>
<f:facet name="controls"><h:graphicImage value="/pictures/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mpm')" />
</f:facet>
</rich:modalPanel>