Olá, pessoal, estou com um problema que está me tirando o sono…
este modal panel, que ao abrir a página pela qual chama o modal só acontece dos dados serem populados no formulário do modal se der um F5 na página…
e o segundo problema é que quando tenho os dados, ao clicar em um a4j :commandbutton para salvar existente na página, nada acontece.
abaixo o código:
isto fica em uma dataTable:
<h:commandLink action="incluirDoador">
<h:graphicImage library="images" name="editar.jpg" title="Editar"
styleClass="imagemLink" width="20" height="20" style="border:0" />
<f:setPropertyActionListener value="#{_doadores}"
target="#{doadorBean.doadorEdicao}">
</f:setPropertyActionListener>
</h:commandLink>
e esta é a modal:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<f:view>
<h:form id="receptorForm">
<rich:popupPanel id="editarReceptor" modal="false" width="600"
height="300" moveable="false">
<f:facet name="header">
<h:outputText value="Insira os novos dados" />
</f:facet>
<h:outputText value="Edição do receptor" />
<h:panelGroup>
<h:panelGrid columns="2" style="margin-left:70px; margin-top:10px;">
<h:panelGroup>
<ui:include src="../formReceptor.xhtml" />
<a4j:commandButton value="Cancelar"
onclick="#{rich:component('editarReceptor')}.hide(); return false;" />
<a4j:commandButton action="#{receptorBean.salvar}" value="salvar"
execute="@form" render="receptorForm"
onclick="#{rich:component('editarReceptor')}.hide(); return false;" />
</h:panelGroup>
</h:panelGrid>
</h:panelGroup>
</rich:popupPanel>
</h:form>
</f:view>
</html>
Agradeço aos que ajudarem.