summaryrefslogtreecommitdiffstats
path: root/WebContent/pages/categories.xhtml
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-11-22 15:07:27 +0100
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-11-23 15:57:23 +0100
commitdf8c8d8eaa3fd74b2f6a76341611555ee6d8834d (patch)
tree40e93e3b3674f32d4870486eb9f5870d9fe45b2b /WebContent/pages/categories.xhtml
downloadJCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.tar.gz
JCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.zip
Add initial files
Diffstat (limited to 'WebContent/pages/categories.xhtml')
-rw-r--r--WebContent/pages/categories.xhtml54
1 files changed, 54 insertions, 0 deletions
diff --git a/WebContent/pages/categories.xhtml b/WebContent/pages/categories.xhtml
new file mode 100644
index 0000000..4a7532e
--- /dev/null
+++ b/WebContent/pages/categories.xhtml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+ <ui:composition template="/templates/common.xhtml">
+
+ <ui:define name="pageTitle">JCatalog Application</ui:define>
+
+ <ui:define name="pageHeader">JCatalog Categories</ui:define>
+
+ <ui:define name="body">
+ <h:form id="categories">
+ <h:dataTable style="border: 1px;" id="categoriestable" value="#{CategoryManager.categories}"
+ var="category">
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Id" />
+ </f:facet>
+ <h:outputText value="#{category.id}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Name" />
+ </f:facet>
+ <h:outputText value="#{category.name}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="Description" />
+ </f:facet>
+ <h:outputText value="#{category.description}" />
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ <h:outputText value="" />
+ </f:facet>
+ <h:commandLink value="View Details ..." immediate="true"
+ actionListener="#{CategoryManager.select}" action="select">
+ <f:param name="selectedId" value="#{category.id}" />
+ </h:commandLink>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+ </ui:define>
+
+ <ui:define name="pageFooter">JCatalog Footer</ui:define>
+
+ </ui:composition>
+
+</html>