Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
  2.     xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">
  3.  
  4. <head>
  5. <title>JSF-Spring-Hibernate</title>
  6. </head>
  7.  
  8. <body>
  9. <center> <FIELDSET style="-moz-border-radius:10px;background-color: #EEEEEE;
  10. width: 800px; height: 90px; " class="borderFieldSet">
  11. <center> <h3><t:outputText value="Integrando JSF - Spring - Hibernate " /></h3></center>
  12. <center><t:outputText value="By Santiago Tapia Y. - @santiagotapiay " /></center>
  13.  
  14. <center><h:outputLink>http://santiagotapiay.blogspot.com/</h:outputLink></center>
  15. </FIELDSET> </center>
  16.  
  17. <center><FIELDSET  style="-moz-border-radius:10px; width: 800px; "  class="borderFieldSet">
  18. <legend>Formulario de Ingreso de datos:</legend>
  19. <h:form id="form_save">
  20.     <h:panelGrid columns="3">
  21.         <h:outputLabel value="Name" for="name" />
  22.         <h:inputText value="#{personaBB.name}" id="name" />
  23.         <h:message for="name"/>
  24.        
  25.         <h:outputLabel value="Email" for="email" />
  26.         <h:inputText value="#{personaBB.email}" id="email"/>
  27.         <h:message for="email"/>
  28.        
  29.         <h:outputLabel value="Website" for="website" />
  30.         <h:inputText value="#{personaBB.website}" id="website" />
  31.         <h:message for="website"/>
  32.        
  33.         <h:outputLabel value="Message" for="message" />
  34.         <h:inputTextarea value="#{personaBB.message}" id="message"/>   
  35.         <h:message for="message"/>
  36.        
  37.         <h:outputText value="" />
  38.         <h:commandButton action="#{personaBB.processSave()}" value="Guardar" />
  39.         <h:outputText value="" />
  40.     </h:panelGrid>
  41. </h:form>
  42. </FIELDSET> </center>
  43. <center> <FIELDSET style="-moz-border-radius:10px;background-color: #EEEEEE;
  44. width: 800px; " class="borderFieldSet">
  45.  <legend>Carga de Datos:</legend>
  46.  <h:dataTable value="#{personaBB.list}" var="persona" border="1">
  47.     <h:column>
  48.         <f:facet name="header" >
  49.             <h:outputText value="Código" />
  50.         </f:facet>
  51.         <h:outputText value="#{persona.id}" />
  52.     </h:column>
  53.     <h:column>
  54.         <f:facet name="header" >
  55.             <h:outputText value="Nombre" />
  56.         </f:facet>
  57.         <h:outputText value="#{persona.name}" />
  58.     </h:column>
  59.     <h:column>
  60.         <f:facet name="header" >
  61.             <h:outputText value="Email" />
  62.         </f:facet>
  63.         <h:outputText value="#{persona.email}" />
  64.     </h:column>
  65.     <h:column>
  66.         <f:facet name="header" >
  67.             <h:outputText value="Website" />
  68.         </f:facet>
  69.         <h:outputText value="#{persona.website}" />
  70.     </h:column>
  71.     <h:column>
  72.         <f:facet name="header" >
  73.             <h:outputText value="Comment" />
  74.         </f:facet>
  75.         <h:outputText value="#{persona.message}" />
  76.     </h:column>
  77.    
  78.  </h:dataTable>
  79.  </FIELDSET> </center>
  80. </body>
  81.  
  82. </html>