From df8c8d8eaa3fd74b2f6a76341611555ee6d8834d Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Sun, 22 Nov 2015 15:07:27 +0100 Subject: Add initial files --- WebContent/META-INF/MANIFEST.MF | 3 + WebContent/WEB-INF/faces-config.xml | 211 ++++++++++++++++++++++++++++++++++ WebContent/WEB-INF/web.xml | 47 ++++++++ WebContent/index.jsp | 10 ++ WebContent/pages/categories.xhtml | 54 +++++++++ WebContent/pages/category.xhtml | 23 ++++ WebContent/pages/contact.xhtml | 23 ++++ WebContent/pages/greeting.xhtml | 22 ++++ WebContent/pages/home.xhtml | 28 +++++ WebContent/pages/login.xhtml | 41 +++++++ WebContent/pages/product.xhtml | 44 +++++++ WebContent/pages/products.xhtml | 62 ++++++++++ WebContent/stylesheets/form.css | 16 +++ WebContent/stylesheets/navigation.css | 25 ++++ WebContent/stylesheets/twocolumn.css | 53 +++++++++ WebContent/templates/common.xhtml | 60 ++++++++++ WebContent/templates/loggedin.xhtml | 60 ++++++++++ 17 files changed, 782 insertions(+) create mode 100644 WebContent/META-INF/MANIFEST.MF create mode 100644 WebContent/WEB-INF/faces-config.xml create mode 100644 WebContent/WEB-INF/web.xml create mode 100644 WebContent/index.jsp create mode 100644 WebContent/pages/categories.xhtml create mode 100644 WebContent/pages/category.xhtml create mode 100644 WebContent/pages/contact.xhtml create mode 100644 WebContent/pages/greeting.xhtml create mode 100644 WebContent/pages/home.xhtml create mode 100644 WebContent/pages/login.xhtml create mode 100644 WebContent/pages/product.xhtml create mode 100644 WebContent/pages/products.xhtml create mode 100644 WebContent/stylesheets/form.css create mode 100644 WebContent/stylesheets/navigation.css create mode 100644 WebContent/stylesheets/twocolumn.css create mode 100644 WebContent/templates/common.xhtml create mode 100644 WebContent/templates/loggedin.xhtml (limited to 'WebContent') diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/WebContent/WEB-INF/faces-config.xml b/WebContent/WEB-INF/faces-config.xml new file mode 100644 index 0000000..06265ca --- /dev/null +++ b/WebContent/WEB-INF/faces-config.xml @@ -0,0 +1,211 @@ + + + + + + + UserManager + beans.UserManager + session + + + + CategoryManager + beans.CategoryManager + session + + + + ContactManager + beans.ContactManager + session + + + + ProductManager + beans.ProductManager + session + + + + + /pages/home.xhtml + + + contact + /pages/contact.xhtml + + + + login + /pages/login.xhtml + + + + categories + /pages/categories.xhtml + + + + + + + /pages/login.xhtml + + + contact + /pages/contact.xhtml + + + + login + /pages/login.xhtml + + + + categories + /pages/categories.xhtml + + + + failure + /pages/login.xhtml + + + + success + /pages/greeting.xhtml + + + + + + + + /pages/categories.xhtml + + + contact + /pages/contact.xhtml + + + + login + /pages/login.xhtml + + + + categories + /pages/categories.xhtml + + + + select + /pages/products.xhtml + + + + + + + /pages/greeting.xhtml + + + contact + /pages/contact.xhtml + + + + categories + /pages/categories.xhtml + + + + home + /pages/home.xhtml + + + + + + + /pages/contact.xhtml + + + contact + /pages/contact.xhtml + + + + categories + /pages/categories.xhtml + + + + login + /pages/login.xhtml + + + + + + + /pages/products.xhtml + + + contact + /pages/contact.xhtml + + + + categories + /pages/categories.xhtml + + + + login + /pages/login.xhtml + + + + + + + /pages/product.xhtml + + + products + /pages/products.xhtml + + + + contact + /pages/contact.xhtml + + + + categories + /pages/categories.xhtml + + + + login + /pages/login.xhtml + + + + + + + com.sun.facelets.FaceletViewHandler + + + de_DE + + + + + + \ No newline at end of file diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..ee62240 --- /dev/null +++ b/WebContent/WEB-INF/web.xml @@ -0,0 +1,47 @@ + + + Facelets JCatalog Application + + javax.faces.DEFAULT_SUFFIX + .xhtml + + + facelets.REFRESH_PERIOD + 2 + + + facelets.DEVELOPMENT + true + + + javax.faces.STATE_SAVING_METHOD + client + + + com.sun.faces.validateXml + true + + + com.sun.faces.verifyObjects + true + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + Faces Servlet + *.jsf + + + JCatalog + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + diff --git a/WebContent/index.jsp b/WebContent/index.jsp new file mode 100644 index 0000000..fa6ee7d --- /dev/null +++ b/WebContent/index.jsp @@ -0,0 +1,10 @@ + + + + + <% response.sendRedirect("pages/home.jsf"); %> + + + \ No newline at end of file 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 @@ + + + + + + + JCatalog Application + + JCatalog Categories + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + JCatalog Footer + + + + 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 @@ + + + + + + + JCatalog Application + + JCatalog Application + + +

Welcome to the JCatalog Demo Application

+
+ + JCatalog Footer + +
+ + 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 @@ + + + + + + + JCatalog Application + + JCatalog Application + + +

Contact Page

+
+ + JCatalog Footer + +
+ + 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 @@ + + + + + + + JCatalog Welcome + + JCatalog Application + + +

Welcome to the JCatalog Demo Application

+
+ + JCatalog Footer + +
+ + 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 @@ + + + + + + + + + + + JCatalog Application + + JCatalog Application + + +

Welcome to the JCatalog Demo Application

+

Please make your choice.

+

Bitte eine Option auswählen.

+
+ + JCatalog Footer + +
+ + 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 @@ + + + + + + + JCatalog Login + + Login + + +
+ + +
+ + +
+
+ + +
+
+ + + +
+
+ +
+ + + JCatalog Footer + + + + 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 @@ + + + + + + + JCatalog Application + + Login + + +
+ +
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+ + + JCatalog Footer + + + + 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 @@ + + + + + + + JCatalog Application + + List of Products + + + + + +

+ List of Products in Category + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + JCatalog Footer + +
+ + diff --git a/WebContent/stylesheets/form.css b/WebContent/stylesheets/form.css new file mode 100644 index 0000000..8667f07 --- /dev/null +++ b/WebContent/stylesheets/form.css @@ -0,0 +1,16 @@ +div.row { + clear: both; + padding-top: 10px; +} + +div.row label { + float: left; + width: 100px; + text-align: right; +} + +div.row span.formw { + float: right; + width: 335px; + text-align: left; +} diff --git a/WebContent/stylesheets/navigation.css b/WebContent/stylesheets/navigation.css new file mode 100644 index 0000000..1ec153b --- /dev/null +++ b/WebContent/stylesheets/navigation.css @@ -0,0 +1,25 @@ +#navcontainer ul +{ +margin: 0; +padding: 0; +list-style-type: none; +} + +#navcontainer li { margin: 0 0 .2em 0; } + +#navcontainer a +{ +display: block; +color: black; +background-color: #ddd; +width: 6em; +padding: .2em .8em; +text-decoration: none; +} + +#navcontainer a:hover +{ +background-color: #bbb; +color: #FFF; +} + diff --git a/WebContent/stylesheets/twocolumn.css b/WebContent/stylesheets/twocolumn.css new file mode 100644 index 0000000..e5b8e84 --- /dev/null +++ b/WebContent/stylesheets/twocolumn.css @@ -0,0 +1,53 @@ +@CHARSET "ISO-8859-1"; + +#container +{ +width: 90%; +margin: 10px auto; +background-color: #fff; +color: #333; +border: 1px solid gray; +line-height: 130%; +} + +#top +{ +padding: .5em; +background-color: #ddd; +border-bottom: 1px solid gray; +} + +#top h1 +{ +padding: 0; +margin: 0; +} + +#leftnav +{ +float: left; +width: 160px; +margin: 0; +padding: 1em; +} + +#content +{ +margin-left: 200px; +border-left: 1px solid gray; +padding: 1em; +max-width: 36em; +} + +#footer +{ +clear: both; +margin: 0; +padding: .5em; +color: #333; +background-color: #ddd; +border-top: 1px solid gray; +} + +#leftnav p { margin: 0 0 1em 0; } +#content h2 { margin: 0 0 .5em 0; } diff --git a/WebContent/templates/common.xhtml b/WebContent/templates/common.xhtml new file mode 100644 index 0000000..151411f --- /dev/null +++ b/WebContent/templates/common.xhtml @@ -0,0 +1,60 @@ + + + + + + <ui:insert name="pageTitle">Page Title</ui:insert> + + + + + + + + +
+ +
+ Page Header +
+ +
+ + +
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+
+ +
+ Page Body +
+ + + +
+ + + + diff --git a/WebContent/templates/loggedin.xhtml b/WebContent/templates/loggedin.xhtml new file mode 100644 index 0000000..3ac57ca --- /dev/null +++ b/WebContent/templates/loggedin.xhtml @@ -0,0 +1,60 @@ + + + + + + <ui:insert name="pageTitle">Page Title</ui:insert> + + + + + + + + +
+ +
+ Page Header +
+ +
+ + +
    +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
+
+
+
+ +
+ Page Body +
+ + + +
+ + + + -- cgit v1.2.3-70-g09d2