Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!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:h="http://java.sun.com/jsf/html">
- <h:head>
- <title>Arena</title>
- </h:head>
- <h:body>
- <h1>Cadastrar Pessoa</h1>
- <h:form>
- <fieldset>
- <legend>Dados de Pessoa</legend>
- <h:panelGrid columns="2">
- <h:outputLabel value="Usuário:" for="nomeUsuario" />
- <h:inputText id="nomeUsuario" value="#{pessoaBean.pessoa.nomeUsuario}" />
- <h:outputLabel value="Nome Completo:" for="nomeCompleto" />
- <h:inputText id="nomeCompleto" value="#{pessoaBean.pessoa.nomeCompleto}" />
- <h:outputLabel value="E-mail:" for="email" />
- <h:inputText id="email" value="#{pessoaBean.pessoa.email}" />
- <h:outputLabel value="Idade:" for="idade" />
- <h:inputText id="idade" value="#{pessoaBean.pessoa.idade}" />
- <h:commandButton value="Cadastrar" action="#{pessoaBean.cadastrar(pessoa)}" />
- </h:panelGrid>
- </fieldset>
- </h:form>
- </h:body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment