| <!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:ui="http://java.sun.com/jsf/facelets" |
| xmlns:h="http://java.sun.com/jsf/html" |
| xmlns:f="http://java.sun.com/jsf/core"> |
| |
| |
| <ui:composition template="template.jsf"> |
| <ui:define name="title">EclipseLink Employee Example</ui:define> |
| <ui:define name="body"> |
| <h2>Employees</h2> |
| <h:form> |
| <div align="center"> |
| <h:dataTable var="emp" value="#{employeeList.employees}" border="1" |
| styleClass="pretty" width="500"> |
| <f:facet name="header">Employees</f:facet> |
| <h:column> |
| <f:facet name="header">ID</f:facet> |
| <h:outputText value="#{emp.id}" /> |
| </h:column> |
| <h:column> |
| <f:facet name="header">Last Name</f:facet> |
| <h:outputText value="#{emp.lastName}" /> |
| </h:column> |
| <h:column> |
| <f:facet name="header">First Name</f:facet> |
| <h:outputText value="#{emp.firstName}" /> |
| </h:column> |
| </h:dataTable> |
| |
| </div> |
| <p> </p> |
| </h:form> |
| </ui:define> |
| </ui:composition> |
| </html> |