Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "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.      xmlns:f="http://java.sun.com/jsf/core">
  6.    
  7.     <f:view>
  8.         <head>
  9.             <title>Introducir Datos de Usuario</title>
  10.         </head>
  11.         <body>
  12.             <center>
  13.                 <h:form>
  14.                     <style type="text/css">
  15.                         body {background:orange}
  16.                     </style>
  17.                     <h3>Introducir sus Datos</h3>
  18.                     <table>
  19.                         <tr>
  20.                             <td>Nombre:</td>
  21.                             <td>
  22.                                 <h:inputText value="#{usuario.nombre}"/>
  23.                             </td>
  24.                         </tr>
  25.                         <tr>
  26.                             <td>Apellido:</td>
  27.                             <td>
  28.                                 <h:inputText value="#{usuario.apellido}"/>
  29.                             </td>
  30.                         </tr>
  31.                         <tr>
  32.                             <td>Edad:</td>
  33.                             <td>
  34.                                 <h:inputText value="#{usuario.edad}"/>
  35.                             </td>
  36.                         </tr>
  37.                     </table>
  38.                     <p>
  39.                         <td>Elija su Pais</td>
  40.                         <SELECT  name="Elegir Componente">
  41.                             <OPTION>Argentina</OPTION>
  42.                             <OPTION>Brasil</OPTION>
  43.                             <OPTION>Chile</OPTION>
  44.                             <OPTION>Colombia</OPTION>
  45.                             <OPTION selected ="componente5">Ecuador</OPTION>
  46.                             <OPTION>Mexico</OPTION>
  47.                             <OPTION>Paraguay</OPTION>
  48.                             <OPTION>Peru</OPTION>
  49.                             <OPTION>Venezuela</OPTION>
  50.                         </SELECT>
  51.                     </p>
  52.                     <p>
  53.                         <h:commandButton value="Aceptar" action="saludo.xhtml"/>    
  54.                         <h:commandButton value="Reiniciar" type="reset"/>
  55.                     </p>    
  56.                 </h:form>
  57.             </center>
  58.         </body>
  59.     </f:view>    
  60. </html>