]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/admin/fax/admin_fax_list.xhtml
Please cherry-pick:
[pizzaservice-war.git] / web / admin / fax / admin_fax_list.xhtml
index ee19c3133a683f0aede2414e10bb6167aeaa4d22..325e20c30353fbdf2f9e1bbf04b8fff1a6fa9269 100644 (file)
@@ -4,7 +4,8 @@
                                xmlns:widgets="http://mxchange.org/jsf/core/widgets"
                                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                                xmlns:h="http://xmlns.jcp.org/jsf/html"
-                               xmlns:f="http://xmlns.jcp.org/jsf/core">
+                               xmlns:f="http://xmlns.jcp.org/jsf/core"
+                               xmlns:p="http://primefaces.org/ui">
 
        <ui:define name="admin_title">
                <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_FAX_NUMBER}" />
        </ui:define>
 
        <ui:define name="content">
-               <h:dataTable id="table_list_fax" var="faxNumber" value="#{phoneController.allFaxNumbers()}" styleClass="table_full" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_FAXS}" rendered="#{not phoneController.allFaxNumbers().isEmpty()}">
-                       <h:column>
+               <p:dataTable id="table_list_fax" var="faxNumber" value="#{phoneController.allFaxNumbers()}" tableStyleClass="table table-full" paginator="true" rows="10" summary="#{msg.TABLE_SUMMARY_ADMIN_LIST_FAXS}" emptyMessage="#{msg.ADMIN_FAX_NUMBER_LIST_EMPTY}">
+                       <p:column>
                                <f:facet name="header">
-                                       <h:outputText value="#{msg.ADMIN_SHOW_PHONE_ID}" />
+                                       <h:outputText value="#{msg.ADMIN_ID_NUMBER}" />
                                </f:facet>
 
-                               <h:link outcome="admin_show_fax" value="#{faxNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_SHORT_TITLE}">
+                               <p:link outcome="admin_show_fax" value="#{faxNumber.phoneId}" title="#{msg.ADMIN_LINK_SHOW_FAX_NUMBER_TITLE}">
                                        <f:param name="phoneId" value="#{faxNumber.phoneId}" />
-                               </h:link>
-                       </h:column>
+                               </p:link>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
-                                       <h:outputLabel for="faxNumber" value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
+                                       <p:outputLabel for="faxNumber" value="#{msg.ADMIN_SHOW_PHONE_NUMBER}" />
                                </f:facet>
 
                                <h:outputText id="faxNumber" value="#{faxNumber.phoneCountry.countryAbroadDialPrefix}#{faxNumber.phoneCountry.countryPhoneCode} (#{faxNumber.phoneAreaCode}) #{faxNumber.phoneNumber}" />
-                       </h:column>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_PHONE_CREATED}" />
                                </f:facet>
@@ -42,9 +43,9 @@
                                <h:outputText value="#{faxNumber.phoneEntryCreated.time}">
                                        <f:convertDateTime type="both" />
                                </h:outputText>
-                       </h:column>
+                       </p:column>
 
-                       <h:column>
+                       <p:column>
                                <f:facet name="header">
                                        <h:outputText value="#{msg.ADMIN_SHOW_PHONE_UPDATED}" />
                                </f:facet>
@@ -52,9 +53,7 @@
                                <h:outputText value="#{faxNumber.phoneEntryUpdated.time}">
                                        <f:convertDateTime type="both" />
                                </h:outputText>
-                       </h:column>
-               </h:dataTable>
-
-               <widgets:outputMessageBox message="#{msg.ADMIN_LIST_FAX_NUMBER_EMPTY}" styleClass="errors" rendered="#{phoneController.allFaxNumbers().isEmpty()}" />
+                       </p:column>
+               </p:dataTable>
        </ui:define>
 </ui:composition>