Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <!DOCTYPE html>
- <html xmlns="http://www.w3c.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:p="http://primefaces.org/ui"
- xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
- <h:head>
- <title>Insert title here</title>
- </h:head>
- <h:body>
- <h:form>
- <h:panelGrid columns="2">
- <h:outputText value="Data"/>
- <p:calendar pattern="dd/MM/yyyy" locale ="pt_BR" value="#{pessoaMB.pessoa.data}"/>
- <h:outputLabel value="Endereco:"/>
- <h:inputText id="txtEndereco" value="#{pessoaMB.pessoa.endereco}"/>
- <h:outputText value="Nome"/>
- <h:inputText id="txtNome" value="#{pessoaMB.pessoa.nome}"/>
- <h:commandButton value="Inserir" action="#{pessoaMB.inserir}"/>
- <h:commandButton value="Listar" action="#{pessoaMB.listar}" />
- </h:panelGrid>
- <h:dataTable value="#{pessoaMB.listar}" var="p">
- <h:column>
- <h:outputText value="#{p.nome}"/>
- </h:column>
- <h:column>
- <h:outputText value="#{p.endereco}"/>
- </h:column>
- </h:dataTable>
- </h:form>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement