<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">
<head>
<title>JSF-Spring-Hibernate</title>
</head>
<body>
<center> <FIELDSET style="-moz-border-radius:10px;background-color: #EEEEEE;
width: 800px; height: 90px; " class="borderFieldSet">
<center> <h3><t:outputText value="Integrando JSF - Spring - Hibernate " /></h3></center>
<center><t:outputText value="By Santiago Tapia Y. - @santiagotapiay " /></center>
<center><h:outputLink>http://santiagotapiay.blogspot.com/</h:outputLink></center>
</FIELDSET> </center>
<center><FIELDSET style="-moz-border-radius:10px; width: 800px; " class="borderFieldSet">
<legend>Formulario de Ingreso de datos:</legend>
<h:form id="form_save">
<h:panelGrid columns="3">
<h:outputLabel value="Name" for="name" />
<h:inputText value="#{personaBB.name}" id="name" />
<h:message for="name"/>
<h:outputLabel value="Email" for="email" />
<h:inputText value="#{personaBB.email}" id="email"/>
<h:message for="email"/>
<h:outputLabel value="Website" for="website" />
<h:inputText value="#{personaBB.website}" id="website" />
<h:message for="website"/>
<h:outputLabel value="Message" for="message" />
<h:inputTextarea value="#{personaBB.message}" id="message"/>
<h:message for="message"/>
<h:outputText value="" />
<h:commandButton action="#{personaBB.processSave()}" value="Guardar" />
<h:outputText value="" />
</h:panelGrid>
</h:form>
</FIELDSET> </center>
<center> <FIELDSET style="-moz-border-radius:10px;background-color: #EEEEEE;
width: 800px; " class="borderFieldSet">
<legend>Carga de Datos:</legend>
<h:dataTable value="#{personaBB.list}" var="persona" border="1">
<h:column>
<f:facet name="header" >
<h:outputText value="Código" />
</f:facet>
<h:outputText value="#{persona.id}" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Nombre" />
</f:facet>
<h:outputText value="#{persona.name}" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Email" />
</f:facet>
<h:outputText value="#{persona.email}" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Website" />
</f:facet>
<h:outputText value="#{persona.website}" />
</h:column>
<h:column>
<f:facet name="header" >
<h:outputText value="Comment" />
</f:facet>
<h:outputText value="#{persona.message}" />
</h:column>
</h:dataTable>
</FIELDSET> </center>
</body>
</html>