Fechar <rich:modalPanel> com <h:commandButton>

Pessoal, alguém sabe como fechar a modal (<rich:modalPanel) depois de executar um método acionado por <h:commandButton>?

Aqui eu ativo a minha modal:

				<h:commandButton id="btnImprimir" actionListener="#{actRelatorio.executaRelatorio}" value="Imprimir" 
					title="Executar relatório" onclick="Richfaces.showModalPanel('geraRelat');">
				</h:commandButton>

Alguém sabe como fechar?

Muito obrigado

Não testei, mas assim deve funcionar:

<h:commandButton id="btnFechar" value="Fechar" onclick="Richfaces.hideModalPanel('geraRelat');"/>  

[]´s

Daniel

http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/rich_modalPanel.html