1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| <h:body>
<h1>Gestion des tâches</h1>
<hr />
<h:form>
<p:dataTable id="dataTable" var="it"
value="#{tacheController.listTaches}" paginator="true" rows="10"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="5,10,15">
<f:facet name="header">
Liste des taches
</f:facet>
<p:column>
<f:facet name="header">
<h:outputText value="Numéro de ticket" />
</f:facet>
<h:outputText value="#{it.num}" />
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Titre" />
</f:facet>
<h:outputText value="#{it.titre}" />
</p:column>
</p:dataTable>
</h:form>
<h:form>
<h:commandLink action="#{tacheController.doNew}">
</h:commandLink>
</h:form>
</h:body> |