diff options
Diffstat (limited to 'WebContent/pages/products.xhtml')
| -rw-r--r-- | WebContent/pages/products.xhtml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/WebContent/pages/products.xhtml b/WebContent/pages/products.xhtml index 1b5e5e4..0266ab4 100644 --- a/WebContent/pages/products.xhtml +++ b/WebContent/pages/products.xhtml @@ -4,7 +4,8 @@ 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:c="http://xmlns.jcp.org/jsp/jstl/core"> + xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" + xmlns:rich="http://richfaces.org/rich"> <ui:composition template="#{UserManager.loggedIn ? '/templates/loggedin.xhtml' : '/templates/common.xhtml'}"> @@ -21,27 +22,27 @@ <h:outputText value="#{CategoryManager.current.name}" /> </h2> - <h:dataTable style="border: 1px;" id="producttable" value="#{CategoryManager.current.products}" + <rich:dataTable style="border: 1px;" id="producttable" value="#{CategoryManager.current.products}" var="product"> - <h:column> + <rich:column> <f:facet name="header"> <h:outputText value="Id" /> </f:facet> <h:outputText value="#{product.id}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="Name" /> </f:facet> <h:outputText value="#{product.name}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="Price" /> </f:facet> <h:outputText value="#{product.price}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="" /> </f:facet> @@ -49,8 +50,8 @@ actionListener="#{ProductManager.select}" action="select"> <f:param name="selectedId" value="#{product.id}" /> </h:commandLink> - </h:column> - </h:dataTable> + </rich:column> + </rich:dataTable> </h:form> </ui:define> |
