Java Reference
In-Depth Information
</p>
</div>
</div>
</h:body>
</html>
Next, we will add the main page view, which will be embedded into your template.
For this purpose, add a JSP page named index.xhtml into the webapp folder of
your Maven project:
<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/
xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
template="/WEB-INF/templates/default.xhtml">
[1]
<ui:define name="content">
<h1>TicketBooker Machine</h1>
<h:form id="reg">
<h3>Money: $
#{theatreBookerBean.money}</h3> [2]
<h:messages errorClass="error"
infoClass="info"globalOnly="true" />
<h:panelGrid columns="1" border="1"
styleClass="smoke">
<h:dataTable var="_seat" value="#{seats}"
[3]
rendered="#{not empty seats}"
styleClass="simpletablestyle">
<h:column>
<f:facet name="header">Id</f:facet>
#{_seat.id}
</h:column>
Search WWH ::




Custom Search