summaryrefslogtreecommitdiffstats
path: root/WebContent/pages
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-30 00:48:03 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-12-13 23:41:01 +0100
commit7297923cf3e0b7cf45a9d94099d1e07493b89b4a (patch)
treeb5912158955f2783fa3ce1bf6ce63d3b691e76df /WebContent/pages
parent10331ccbacbff885201eb33998007228c4caa962 (diff)
downloadJCatalog-7297923cf3e0b7cf45a9d94099d1e07493b89b4a.tar.gz
JCatalog-7297923cf3e0b7cf45a9d94099d1e07493b89b4a.zip
Port dataTable to primefacesprimefaces
Diffstat (limited to 'WebContent/pages')
-rw-r--r--WebContent/pages/categories.xhtml23
-rw-r--r--WebContent/pages/products.xhtml23
2 files changed, 24 insertions, 22 deletions
diff --git a/WebContent/pages/categories.xhtml b/WebContent/pages/categories.xhtml
index 2e8cd0e..4677655 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:p="http://primefaces.org/ui">
<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}"
+ <p:dataTable style="border: 1px;" id="categoriestable" value="#{CategoryManager.categories}"
var="category">
- <h:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Id" />
</f:facet>
<h:outputText value="#{category.id}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{category.name}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Description" />
</f:facet>
<h:outputText value="#{category.description}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p: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>
+ </p:column>
+ </p:dataTable>
</h:form>
</ui:define>
diff --git a/WebContent/pages/products.xhtml b/WebContent/pages/products.xhtml
index 1b5e5e4..94a38b1 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:p="http://primefaces.org/ui">
<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}"
+ <p:dataTable style="border: 1px;" id="producttable" value="#{CategoryManager.current.products}"
var="product">
- <h:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Id" />
</f:facet>
<h:outputText value="#{product.id}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<h:outputText value="#{product.name}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p:column>
<f:facet name="header">
<h:outputText value="Price" />
</f:facet>
<h:outputText value="#{product.price}" />
- </h:column>
- <h:column>
+ </p:column>
+ <p: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>
+ </p:column>
+ </p:dataTable>
</h:form>
</ui:define>