diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-30 00:37:37 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-13 23:42:24 +0100 |
| commit | f89c8df2b8c92c9383454f391e5b56d9f7444c5a (patch) | |
| tree | 0b903512a4e1e7977b5e21ba64fd295ebab4ca08 /WebContent/pages/categories.xhtml | |
| parent | 10331ccbacbff885201eb33998007228c4caa962 (diff) | |
| download | JCatalog-richfaces.tar.gz JCatalog-richfaces.zip | |
Port dataTable to richfacesrichfaces
Diffstat (limited to 'WebContent/pages/categories.xhtml')
| -rw-r--r-- | WebContent/pages/categories.xhtml | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/WebContent/pages/categories.xhtml b/WebContent/pages/categories.xhtml index 2e8cd0e..881413a 100644 --- a/WebContent/pages/categories.xhtml +++ b/WebContent/pages/categories.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'}"> @@ -14,27 +15,27 @@ <ui:define name="body"> <h:form id="categories"> - <h:dataTable style="border: 1px;" id="categoriestable" value="#{CategoryManager.categories}" + <rich:dataTable id="categoriestable" value="#{CategoryManager.categories}" var="category"> - <h:column> + <rich:column> <f:facet name="header"> <h:outputText value="Id" /> </f:facet> <h:outputText value="#{category.id}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="Name" /> </f:facet> <h:outputText value="#{category.name}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="Description" /> </f:facet> <h:outputText value="#{category.description}" /> - </h:column> - <h:column> + </rich:column> + <rich:column> <f:facet name="header"> <h:outputText value="" /> </f:facet> @@ -42,8 +43,8 @@ actionListener="#{CategoryManager.select}" action="select"> <f:param name="selectedId" value="#{category.id}" /> </h:commandLink> - </h:column> - </h:dataTable> + </rich:column> + </rich:dataTable> </h:form> </ui:define> |
