Tenho um formulario onde recebo os dados para cadastro de um contato, apos ser salvar esses dados vao direto para uma tabela que tem abaixo e os dados do formulario são limpos…Gostaria de saber como fazer para que os dados cadastrados apareçam em algum lugar para o usario poder ver os dados que ele inseriu.
TIPO ESSE EXEMPLO:
http://livedemo.exadel.com/richfaces-demo/richfaces/commandButton.jsf?c=commandButton&tab=usage
Segue minha pagina:
<rich:panel header="CADASTRO DE CONTATOS:">
<h:messages />
<h:panelGrid columns="4" id="cadastrante">
<h:outputLabel for="NomeGuerra" value="Nome de Guerra:"/>
<h:inputText value="#{cadastraContato.contato.nomeguerra}" validatorMessage="DIGITE ATÉ 30 CARACTERES PARA O NOME" required="true" requiredMessage="CAMPO NOME DE 'guerra' ESTA EM BRANCO" size="30" id="nomeguerra">
<f:validateLength maximum="30" />
</h:inputText>
<h:outputLabel for="nome" value="Nome:" />
<h:inputText value="#{cadastraContato.contato.nome}" required="true" requiredMessage="CAMPO NOMES ESTÁ EM BRANCO" size="30" id="nome" />
<h:outputLabel for="setor" value="Setor" />
<h:inputText value="#{cadastraContato.contato.setor}" size="30" id="setor" />
<h:outputLabel for="filial" value="Filial:" />
<h:inputText value="#{cadastraContato.contato.filial}" size="12" id="filial" />
<h:outputLabel for="cgc" value="C.G.C:" />
<h:inputText value="#{cadastraContato.contato.cgc}" size="12" id="cgc" />
<h:outputLabel for="uf" value="UF:" />
<h:inputText value="#{cadastraContato.contato.uf}" size="12" id="uf" />
<h:outputLabel for="cidade" value="CIDADE:" />
<h:inputText value="#{cadastraContato.contato.cidade}" size="12" id="cidade" />
<h:outputLabel for="bairro" value="BAIRRO:" />
<h:inputText value="#{cadastraContato.contato.bairro}" size="12" id="bairro" />
<h:outputLabel for="logradouro" value="LOGRADOURO:" />
<h:inputText value="#{cadastraContato.contato.logradouro}" size="12" id="logradouro" />
<h:outputLabel for="cep" value="CEP:" />
<h:inputText value="#{cadastraContato.contato.cep}" size="12" id="cep" />
<h:outputLabel for="telefone" value="Telefone1:" />
<h:inputText value="#{cadastraContato.contato.telefone1}" validatorMessage="digite ate 15 numeros para este telefone" size="15" id="telefone1" />
<h:outputLabel for="telefone" value="Telefone2:" />
<h:inputText value="#{cadastraContato.contato.telefone2}" size="13" id="telefone2" />
<h:outputLabel for="telefone" value="Telefone3:" />
<h:inputText value="#{cadastraContato.contato.telefone3}" size="13" id="telefone3"/>
<br><br>
<a4j:commandButton reRender="cadastrante" action="#{cadastraContato.salvar}" value="Salvar"/>
</h:panelGrid>
</rich:panel>