Java Reference
In-Depth Information
template="/WEB-INF/templates/
default.xhtml"> [1]
<ui:define name="content">
<h1>TicketBooker Machine</h1>
<h:form id="reg">
<h3>Money: $ #{theatreBooker.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>
<h:column>
<f:facet
name="header">Name</f:facet>
#{_seat.name}
</h:column>
<h:column>
<f:facet
name="header">Price</f:facet>
#{_seat.price}$
</h:column>
<h:column>
<f:facet
name="header">Booked</f:facet>
#{_seat.booked}
</h:column>
<h:column>
<f:facet
name="header">Action</f:facet>
<h:commandButton id="book"
Search WWH ::




Custom Search