Estou desenvolvendo com richfaces o componente a seguir para visualizar os dados de um objeto
<rich:popupPanel id="visualizar" modal="true" resizeable="false"
moveable="false" >
<f:facet name="header">
<h:outputText value="Visualizar Ponto" />
</f:facet>
<h:form id="form" >
<h:panelGrid columns="2">
<h:outputLabel>Código:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.codigo}" readonly="true"/>
<h:outputLabel>Data:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.data}" readonly="true"/>
<h:outputLabel>Data:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.opcao}" readonly="true"/>
<h:outputLabel>Funcionario</h:outputLabel><h:outputLabel>:</h:outputLabel>
<h:outputLabel>Nome:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.funcionario.nome}" readonly="true"/>
<h:outputLabel>CPF:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.funcionario.cpf}" readonly="true"/>
<h:outputLabel>Nro Ponto:</h:outputLabel>
<h:inputText value="#{pontoBean.ponto.funcionario.nroPonto}" readonly="true"/>
</h:panelGrid>
<h:panelGrid columns="2">
<a4j:commandButton value="Fechar">
<a4j:ajax oncomplete="#{rich:component('visualizar')}.hide();"/>
</a4j:commandButton>
</h:panelGrid>
</h:form>
</rich:popupPanel>
e para ativa-lo o seguinte botão
<h:commandButton onclick="#{rich:component('visualizar')}.show();"
value="Visualizar" class="edit_icon" >
<f:attribute name="pontoSelecionado" value="#{ponto}" />
<a4j:actionListener listener="#{pontoBean.visualizar}" />
</h:commandButton>
Porem os campos na janela são preenchidos apenas na segunda vez que ativo ela, além de aparecer apenas por um segundo e fechar sozinha. Que função seria mais adequada?