rafaelvicio

Untitled

Jun 28th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml"
  4. xmlns:h="http://java.sun.com/jsf/html">
  5. <h:head>
  6. <title>Arena</title>
  7. </h:head>
  8.  
  9. <h:body>
  10.  
  11. <h1>Cadastrar Pessoa</h1>
  12. <h:form>
  13. <fieldset>
  14. <legend>Dados de Pessoa</legend>
  15. <h:panelGrid columns="2">
  16. <h:outputLabel value="Usuário:" for="nomeUsuario" />
  17. <h:inputText id="nomeUsuario" value="#{pessoaBean.pessoa.nomeUsuario}" />
  18. <h:outputLabel value="Nome Completo:" for="nomeCompleto" />
  19. <h:inputText id="nomeCompleto" value="#{pessoaBean.pessoa.nomeCompleto}" />
  20. <h:outputLabel value="E-mail:" for="email" />
  21. <h:inputText id="email" value="#{pessoaBean.pessoa.email}" />
  22. <h:outputLabel value="Idade:" for="idade" />
  23. <h:inputText id="idade" value="#{pessoaBean.pessoa.idade}" />
  24. <h:commandButton value="Cadastrar" action="#{pessoaBean.cadastrar(pessoa)}" />
  25. </h:panelGrid>
  26. </fieldset>
  27. </h:form>
  28. </h:body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment