diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-22 15:07:27 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-11-23 15:57:23 +0100 |
| commit | df8c8d8eaa3fd74b2f6a76341611555ee6d8834d (patch) | |
| tree | 40e93e3b3674f32d4870486eb9f5870d9fe45b2b /WebContent/pages | |
| download | JCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.tar.gz JCatalog-df8c8d8eaa3fd74b2f6a76341611555ee6d8834d.zip | |
Add initial files
Diffstat (limited to 'WebContent/pages')
| -rw-r--r-- | WebContent/pages/categories.xhtml | 54 | ||||
| -rw-r--r-- | WebContent/pages/category.xhtml | 23 | ||||
| -rw-r--r-- | WebContent/pages/contact.xhtml | 23 | ||||
| -rw-r--r-- | WebContent/pages/greeting.xhtml | 22 | ||||
| -rw-r--r-- | WebContent/pages/home.xhtml | 28 | ||||
| -rw-r--r-- | WebContent/pages/login.xhtml | 41 | ||||
| -rw-r--r-- | WebContent/pages/product.xhtml | 44 | ||||
| -rw-r--r-- | WebContent/pages/products.xhtml | 62 |
8 files changed, 297 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> diff --git a/WebContent/pages/category.xhtml b/WebContent/pages/category.xhtml new file mode 100644 index 0000000..b5313a3 --- /dev/null +++ b/WebContent/pages/category.xhtml @@ -0,0 +1,23 @@ +<?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 Application</ui:define> + + <ui:define name="body"> + <h2>Welcome to the JCatalog Demo Application <h:outputText id="category" value="#{CategoryManager.current.name}" /></h2> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + + </ui:composition> + +</html> diff --git a/WebContent/pages/contact.xhtml b/WebContent/pages/contact.xhtml new file mode 100644 index 0000000..b51f1dd --- /dev/null +++ b/WebContent/pages/contact.xhtml @@ -0,0 +1,23 @@ +<?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 Application</ui:define> + + <ui:define name="body"> + <h2>Contact Page</h2> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + + </ui:composition> + +</html> diff --git a/WebContent/pages/greeting.xhtml b/WebContent/pages/greeting.xhtml new file mode 100644 index 0000000..73e1d62 --- /dev/null +++ b/WebContent/pages/greeting.xhtml @@ -0,0 +1,22 @@ +<?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"> + + <ui:composition template="/templates/loggedin.xhtml"> + + <ui:define name="pageTitle">JCatalog Welcome</ui:define> + + <ui:define name="pageHeader">JCatalog Application</ui:define> + + <ui:define name="body"> + <h2>Welcome to the JCatalog Demo Application <h:outputText id="username" value="#{UserManager.username}" /></h2> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + + </ui:composition> + +</html> diff --git a/WebContent/pages/home.xhtml b/WebContent/pages/home.xhtml new file mode 100644 index 0000000..735c734 --- /dev/null +++ b/WebContent/pages/home.xhtml @@ -0,0 +1,28 @@ +<?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"> + + <head> + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> + </head> + + <ui:composition template="/templates/common.xhtml"> + + <ui:define name="pageTitle">JCatalog Application</ui:define> + + <ui:define name="pageHeader">JCatalog Application</ui:define> + + <ui:define name="body"> + <h2>Welcome to the JCatalog Demo Application</h2> + <p>Please make your choice.</p> + <p>Bitte eine Option auswählen.</p> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + + </ui:composition> + +</html> diff --git a/WebContent/pages/login.xhtml b/WebContent/pages/login.xhtml new file mode 100644 index 0000000..2e94421 --- /dev/null +++ b/WebContent/pages/login.xhtml @@ -0,0 +1,41 @@ +<?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 Login</ui:define> + + <ui:define name="pageHeader">Login</ui:define> + + <ui:define name="body"> + <div style="width: 500px; padding: 5px; margin: 0px auto; float: left;"> + <h:form id="loginForm"> + <h:inputHidden id="action" value="login" /> + <div class="row"> + <label for="username"><u>U</u>sername:</label> + <span class="formw"><h:inputText id="username" value="#{UserManager.username}" accesskey="u" size="40" /></span> + </div> + <div class="row"> + <label for="password"><u>P</u>assword:</label> + <span class="formw"><h:inputSecret id="password" value="#{UserManager.password}" accesskey="p" size="32" /></span> + </div> + <div class="row"> + <span class="formw"> + <h:commandButton action="#{UserManager.login}" id="submit" value="Submit" type="submit" accesskey="s" /> + </span> + </div> + <div class="spacer" /> + </h:form> + </div> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + +</ui:composition> + +</html> diff --git a/WebContent/pages/product.xhtml b/WebContent/pages/product.xhtml new file mode 100644 index 0000000..06c4a8d --- /dev/null +++ b/WebContent/pages/product.xhtml @@ -0,0 +1,44 @@ +<?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">Login</ui:define> + + <ui:define name="body"> + <div style="width: 500px; padding: 5px; margin: 0px auto; float: left;"> + <h:form> + <div class="row"> + <label for="name">Name:</label> + <span class="formw"><h:inputText id="name" disabled="true" value="#{ProductManager.current.name}" accesskey="n" size="40" /></span> + </div> + <div class="row"> + <label for="price">Price:</label> + <span class="formw"><h:inputText id="price" disabled="true" value="#{ProductManager.current.price}" accesskey="p" size="40" /></span> + </div> + <div class="row"> + <label for="description">Description:</label> + <span class="formw"><h:inputTextarea rows="20" cols="40" id="description" disabled="true" value="#{ProductManager.current.description}" accesskey="d" /></span> + </div> + <div class="row"> + <span class="formw"> + <h:commandButton action="products" id="back" value="Back" type="submit" accesskey="b" /> + </span> + </div> + <div class="spacer" /> + </h:form> + </div> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + +</ui:composition> + +</html> diff --git a/WebContent/pages/products.xhtml b/WebContent/pages/products.xhtml new file mode 100644 index 0000000..f833c1d --- /dev/null +++ b/WebContent/pages/products.xhtml @@ -0,0 +1,62 @@ +<?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">List of Products</ui:define> + + <ui:define name="body"> + + <h:form id="products"> + + <h2> + <f:verbatim>List of Products in Category </f:verbatim> + <h:outputText value="#{CategoryManager.current.name}" /> + </h2> + + <h:dataTable style="border: 1px;" id="producttable" value="#{CategoryManager.current.products}" + var="product"> + <h:column> + <f:facet name="header"> + <h:outputText value="Id" /> + </f:facet> + <h:outputText value="#{product.id}" /> + </h:column> + <h:column> + <f:facet name="header"> + <h:outputText value="Name" /> + </f:facet> + <h:outputText value="#{product.name}" /> + </h:column> + <h:column> + <f:facet name="header"> + <h:outputText value="Price" /> + </f:facet> + <h:outputText value="#{product.price}" /> + </h:column> + <h:column> + <f:facet name="header"> + <h:outputText value="" /> + </f:facet> + <h:commandLink value="View Details ..." immediate="true" + actionListener="#{ProductManager.select}" action="select"> + <f:param name="selectedId" value="#{product.id}" /> + </h:commandLink> + </h:column> + </h:dataTable> + + </h:form> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + + </ui:composition> + +</html> |
