Pagina home con layout fluid y tabla de datos con botón refresh.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-16 23:15:18 +01:00
parent 63101a301b
commit e04bbf6f35
2 changed files with 46 additions and 29 deletions

View File

@@ -41,7 +41,7 @@
<p:message for="campo" display="text" />
</div>
<p:dataTable var="qs" value="#{PendingQuestions.lazyDataModelQuestionList}" lazy="true" paginator="true" rows="10" paginatorPosition="bottom" paginatorAlwaysVisible="true"
<p:dataTable widgetVar="dtPendingQuestions" var="qs" value="#{PendingQuestions.lazyDataModelQuestionList}" lazy="true" paginator="true" rows="10" paginatorPosition="bottom" paginatorAlwaysVisible="true"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="10,20,30,40">
<p:column headerText="Id" width="60px;">
<h:outputText value="#{qs.id}" />
@@ -62,8 +62,8 @@
<h:outputText value="Responder" />
</p:column>
<f:facet name="paginatorTopLeft">
<p:commandButton type="button" icon="pi pi-refresh" />
<f:facet name="paginatorBottomLeft">
<p:commandButton type="button" icon="pi pi-refresh" onclick="PF('dtPendingQuestions').getPaginator().setPage(0);" />
</f:facet>
</p:dataTable>