}
@Override
+ @Deprecated
public String getPrintableProduktAvailability (final Product product) {
// Trace message
this.getLogger().trace(MessageFormat.format("product={0} - CALLED!", product)); //NOI18N
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
+ <validator>
+ <validator-id>PrivacyTermsCheckboxValidator</validator-id>
+ <validator-class>org.mxchange.jsfcore.validator.bool.privacy_terms.PrivacyTermsCheckboxValidator</validator-class>
+ </validator>
</faces-config>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
- <ui:composition template="/WEB-INF/templates/base.tpl">
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="title">Your page's title here</ui:define>
<ui:define name="menu">
<h:body>
<div id="top">
- <ui:insert name="top">
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - <ui:insert name="title">Default title</ui:insert></h1>
- </div>
+ <div id="header">
+ <div id="title">
+ <h1>Pizza-Service - <ui:insert name="title">Default title</ui:insert></h1>
</div>
- </ui:insert>
+ </div>
</div>
<div id="menu_content">
--- /dev/null
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <!--
+ TODO: Missing pre-select of choosen gender
+ //-->
+ <h:selectOneListbox class="select" id="gender" size="1">
+ <ui:repeat var="gender" value="#{Gender.values()}">
+ <option value="#{gender.name()}">#{gender}</option>
+ </ui:repeat>
+ </h:selectOneListbox>
+</ui:composition>
--- /dev/null
+<ui:composition
+ template="/WEB-INF/templates/base.tpl"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+ <!--
+ TODO Unused:
+ xmlns:basket="http://mxchange.org/jshop/tags/basket"
+ <basket:mini_basket basket="#{basket}" />
+ //-->
+</ui:composition>
--- /dev/null
+<ui:composition
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+ <div id="customer_login_content">
+ <h:form acceptcharset="utf-8" id="login_form">
+ <div class="table">
+ <div class="table_header">
+ Bitte geben Sie Ihre Kundennummer und Passwort ein:
+ </div>
+
+ <fieldset id="login_data">
+ <legend title="Bitte geben Sie Ihre Kundennummer und das dazugehörige Passwort ein.">Bitte Daten eingeben:</legend>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="id" value="Kundennummer:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="id" size="10" maxlength="20" />
+ </div>
+ </div>
+
+ <div class="clear"></div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="password" value="Passwort:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputSecret class="input" id="password" size="10" maxlength="255" />
+ </div>
+ </div>
+
+ <div class="clear"></div>
+ </fieldset>
+
+ <div class="table_footer">
+ <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
+ <h:commandButton class="submit" type="submit" action="#{controller.doLogin()}" value="Einloggen" />
+ </div>
+ </div>
+ </h:form>
+ </div>
+</ui:composition>
<div class="menu_header">
Home
</div>
+
<ul>
<li><h:link title="Eingangsseite" outcome="index" value="Home" /></li>
<li><h:link title="Zum Warenkorb" outcome="basket" value="Zum Warenkorb" /></li>
<div class="menu_header">
Kundenlogin
</div>
+
<ul>
<li><h:link title="Login für bestehende Kunden" outcome="customer_login" value="Einloggen" /></li>
<li><h:link title="Anmeldung als neuer Kunde" outcome="customer_register" value="Neuer Kunde" /></li>
<filter-name>Log4jServletFilter</filter-name>
<filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
</filter>
+ <!--
+ TODO: No longer used
<filter>
<description>A filter for handling added basket items</description>
<filter-name>BasketItemAddedFilter</filter-name>
<filter-name>BasketItemAddedFilter</filter-name>
<url-pattern>/form_handler/add_item.jsp</url-pattern>
</filter-mapping>
+ //-->
<filter-mapping>
<filter-name>Log4jServletFilter</filter-name>
<url-pattern>/*</url-pattern>
+++ /dev/null
-<%--
- Document : login
- Created on : 11.08.2015, 11:35:53
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
-
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<c:set var="basePath" value="${pageContext.request.contextPath}" />
-
-<!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" xml:lang="de" lang="de">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Einloggen</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Einloggen</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Einloggen als bestehender Kunde:</h2>
- </div>
-
- <div id="content">
- <div class="para">
- Noch kein Kunde? Einfach beim Bestellen anmelden oder <a href="${basePath}/customer/register.jsp">hier</a> anmelden.
- </div>
-
- <div class="para">
- <jsp:include page="/static/forms/form_login.jsp" flush="false" />
- </div>
-
- <div class="para">
- <a href="${basePath}/lost_passwd.jsp">Passwort vergessen?</a>
- </div>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' ?>
+<!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://xmlns.jcp.org/jsf/html"
+ xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl" id="customer_login">
+ <ui:define name="title">Einloggen</ui:define>
+
+ <ui:define name="menu">
+ <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+ </ui:define>
+
+ <ui:define name="content_header">
+ Zum Kundenbereich einloggen
+ </ui:define>
+
+ <ui:define name="content">
+ <div class="para">
+ Noch kein Kunde? Einfach beim Bestellen anmelden oder <h:link id="customer_register" outcome="customer_register" title="Als Kunde anmelden">hier</h:link> anmelden.
+ </div>
+
+ <div class="para">
+ <ui:include id="login_form" class="login_form" src="/WEB-INF/templates/guest/guest_login_form.tpl" />
+ </div>
+
+ <div class="para">
+ <h:link id="customer_lost_password" outcome="customer_register" title="Passwort wiederherstellen" value="Passwort vergessen?" />
+ </div>
+ </ui:define>
+
+ <ui:define name="footer">
+ <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+ </ui:define>
+ </ui:composition>
+</html>
+++ /dev/null
-<%--
- Document : lost_passwd
- Created on : 11.08.2015, 11:35:53
- Author : Roland Haeder
---%>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
-
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<c:set var="basePath" value="${pageContext.request.contextPath}" />
-
-<!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" xml:lang="de" lang="de">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Passwort vergessen</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Passwort vergessen</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Passwort vergessen:</h2>
- </div>
-
- <div id="content">
- <div class="para">
- Sie haben Ihr Passwort vergessen?
- </div>
-
- <div class="para">
- <div id="login_form">
- <form action="${basePath}/form_handler/do_passwd.jsp" accept-charset="utf-8" id="form" method="post">
- <div class="table">
- <div class="table_header">
- Bitte geben Sie Ihre Kundennummer oder eMail-Adresse ein:
- </div>
-
- <fieldset id="login_data">
- <legend title="Bitte Daten eingeben:">Bitte Daten eingeben:</legend>
-
- <div class="table_row">
- <div class="table_left">
- Kundennummer:
- </div>
- <div class="table_right">
- <input class="input" type="text" name="id" size="10" maxlength="20" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_header">
- ... oder ...
- </div>
-
- <div class="table_row">
- <div class="table_left">
- eMail-Adresse:
- </div>
- <div class="table_right">
- <input class="input" type="text" name="email" size="20" maxlength="255" />
- </div>
- <div class="clear"></div>
- </div>
-
- </fieldset>
-
- <div class="table_footer">
- <input type="hidden" name="redirect" value="<%=request.getRequestURI()%>" />
- <input class="reset" type="reset" value="Formular zurücksetzen" />
- <input class="submit" type="submit" name="send" value="Weiter zu Schritt 2" />
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' ?>
+<!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://xmlns.jcp.org/jsf/html"
+ xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+ <ui:define name="title">Passwort vergessen</ui:define>
+
+ <ui:define name="menu">
+ <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+ </ui:define>
+
+ <ui:define name="content_header">
+ Stellen Sie Ihr Passwort wieder her.
+ </ui:define>
+
+ <ui:define name="content">
+ <div class="para" id="customer_lost_password_content">
+ <h:form acceptcharset="utf-8" id="lost_password_form">
+ <div class="table">
+ <div class="table_header">
+ Sie haben Ihr Passwort vergessen?
+ </div>
+
+ <fieldset id="login_data">
+ <legend title="Bitte Daten eingeben:">Bitte Daten eingeben:</legend>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="id" value="Kundennummer:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="id" size="10" maxlength="20" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_header">
+ ... oder ...
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="email" value="eMail-Adresse:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="email" size="20" maxlength="255" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ </fieldset>
+
+ <div class="table_footer">
+ <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
+ <h:commandButton class="submit" type="submit" value="Weiter zu Schritt 2" action="#{controller.doLostPasswordStep2()}" />
+ </div>
+ </div>
+ </h:form>
+ </div>
+ </ui:define>
+
+ <ui:define name="footer">
+ <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+ </ui:define>
+ </ui:composition>
+</html>
+++ /dev/null
-<%--
- Document : register
- Created on : 11.08.2015, 11:56:22
- Author : Roland Haeder
---%>
-
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-
-<%--<%@page errorPage="errorHandler.jsp" %>--%>
-<%@page contentType="text/html" pageEncoding="UTF-8"%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
-
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<c:set var="basePath" value="${pageContext.request.contextPath}" />
-
-<!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" xml:lang="de" lang="de">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <link rel="stylesheet" href="${basePath}/style.css" type="text/css" />
- <title>Pizza-Service - Neukunde</title>
- </head>
-
- <body>
- <div id="header">
- <div id="title">
- <h1>Pizza-Service - Neukunde</h1>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_menu.jsp" flush="false" />
-
- <div id="content_outer">
- <div id="content_title">
- <h2>Anmelden zum Pizza-Service:</h2>
- </div>
-
- <div id="content">
- <div>
- Sie sind bereits Kunde? Dann <a href="${basePath}/customer/login.jsp">hier</a> einloggen.
- </div>
-
- <form action="${basePath}/form_handler/do_register.jsp" accept-charset="utf-8" id="form" method="post">
- <div class="table">
- <div class="table_header">
- Bitte geben Sie mindestens Name, Anschrift und Telefonnummer ein:
- </div>
-
- <div class="para">
- <fieldset id="personal_data">
- <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
-
- <div class="table_row">
- <div class="table_left">
- <label for="gender">Anrede</label>
- </div>
-
- <div class="table_right">
- <c:set var="enabled" scope="request" value="true" />
- <jsp:include page="/static/gender_selection_box.jsp" flush="false" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="companyname">Firmenname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="companyname" name="companyName" size="15" maxlength="255" value="${customer.companyName}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="firstName">Vorname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="firstName" name="firstName" size="10" maxlength="255" value="${customer.firstName}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="familyName">Nachname:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="familyName" name="familyName" size="10" maxlength="255" value="${customer.familyName}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="street">Straße:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="street" name="street" size="20" maxlength="255" value="${customer.street}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="houseNumber">Hausnummer:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="houseNumber" name="houseNumber" size="3" maxlength="5" value="${customer.houseNumber}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="zipCode">Postleitzahl:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="zipCode" name="zipCode" size="5" maxlength="6" value="${customer.zipCode}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="city">Ort:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="city" name="city" size="10" maxlength="255" value="${customer.city}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="phoneNumber">Telefon:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="phoneNumber" name="phoneNumber" size="20" maxlength="255" value="${customer.phoneNumber}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="faxNumber">Faxnummer:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="faxNumber" name="faxNumber" size="20" maxlength="255" value="${customer.faxNumber}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <label for="cellphoneNumber">Handy:</label>
- </div>
-
- <div class="table_right">
- <input class="input" type="text" id="cellphoneNumber" name="cellphoneNumber" size="20" maxlength="255" value="${customer.cellphoneNumber}" />
- </div>
-
- <div class="clear"></div>
- </div>
- </fieldset>
- </div>
-
- <div class="para">
- <fieldset id="login_data">
- <legend title="Zum Bestätigen wird Ihre Email-Adresse benötigt, für den Login Kundennummer und Passwort.">Email-Adresse und Passwort:</legend>
-
- <div class="table_row">
- <div class="table_left">
- eMail-Adresse eingeben:
- </div>
-
- <div class="table_right">
- <input class="input" type="text" name="email1" size="20" maxlength="255" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- eMail-Adresse wiederholen:
- </div>
-
- <div class="table_right">
- <input class="input" type="text" name="email2" size="20" maxlength="255" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="para"></div>
-
- <div class="table_row">
- <div class="table_left">
- Passwort eingeben:
- </div>
-
- <div class="table_right">
- <input class="input" type="password" name="password1" size="10" maxlength="255" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- Passwort wiederholen:
- </div>
-
- <div class="table_right">
- <input class="input" type="password" name="password2" size="10" maxlength="255" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="para notice">
- Die Kundennummer wird Ihnen später vergeben.
- </div>
- </fieldset>
- </div>
-
- <div class="para">
- <fieldset id="terms_privacy">
- <legend title="Bitte die AGBs und Datenschutzbestimmungen lesen und akzeptieren.">Rechtliches:</legend>
-
- <div class="table_row">
- <div class="table_left25">
- <input class="input" type="checkbox" name="privacy" value="1" />
- </div>
-
- <div class="table_right75">
- Ja, ich habe die <a href="${basePath}/privacy.jsp" target="_blank">Datenschutzbestimmungen</a> gelesen und
- auch verstanden.
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left25">
- <input class="input" type="checkbox" name="terms" value="1" />
- </div>
-
- <div class="table_right75">
- Ja, ich habe die <a href="${basePath}/terms.jsp" target="_blank">Allgemeinen Geschäftsbedingungen</a> gelesen und
- auch verstanden.
- </div>
-
- <div class="clear"></div>
- </div>
- </fieldset>
- </div>
-
- <div class="table_footer">
- <input class="reset" type="reset" value="Formular zurücksetzen" />
- <input class="submit" type="submit" name="send" value="Anmelden" />
- </div>
- </div>
- </form>
- </div>
- </div>
-
- <jsp:include page="/static/guest/guest_footer.jsp" flush="false" />
- </body>
-</html>
--- /dev/null
+<?xml version='1.0' encoding='UTF-8' ?>
+<!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://xmlns.jcp.org/jsf/html"
+ xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
+ xmlns:f="http://xmlns.jcp.org/jsf/core"
+ >
+
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
+ <ui:define name="title">Neukunde</ui:define>
+
+ <ui:define name="menu">
+ <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
+ </ui:define>
+
+ <ui:define name="content_header">
+ Anmelden zum Pizza-Service:
+ </ui:define>
+
+ <ui:define name="content">
+ <div class="para">
+ Sie sind bereits Kunde? Dann <h:link outcome="customer_login" value="hier" /> einloggen.
+ </div>
+
+ <h:form acceptcharset="utf-8" id="register_form">
+ <div class="table">
+ <div class="table_header">
+ Anmelden als Neukunde
+ </div>
+
+ <div class="para notice">
+ Bitte geben Sie mindestens Name, Anschrift und Telefonnummer ein:
+ </div>
+
+ <div class="para">
+ <fieldset id="personal_data">
+ <legend title="Bitte geben Sie Ihre Daten ein.">Bitte Ihre Daten eingeben:</legend>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="gender" value="Anrede:" />
+ </div>
+
+ <div class="table_right">
+ <c:set var="enabled" scope="request" value="true" />
+ <ui:include src="/WEB-INF/templates/generic/gender_selection_box.tpl" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="companyname" value="Firmenname:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="companyname" size="15" maxlength="255" value="#{customer.companyName}" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="firstName" value="Vorname:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="firstName" size="10" maxlength="255" value="#{customer.firstName}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="familyName" value="Nachname:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="familyName" size="10" maxlength="255" value="#{customer.familyName}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="street" value="Straße:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="street" size="20" maxlength="255" value="#{customer.street}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="houseNumber" value="Hausnummer:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="houseNumber" size="3" maxlength="5" value="#{customer.houseNumber}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="zipCode" value="Postleitzahl:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="zipCode" size="5" maxlength="6" value="#{customer.zipCode}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="city" value="Ort:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="city" size="10" maxlength="255" value="#{customer.city}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="phoneNumber" value="Telefon:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="phoneNumber" size="20" maxlength="255" value="#{customer.phoneNumber}" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="faxNumber" value="Faxnummer:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="faxNumber" size="20" maxlength="255" value="#{customer.faxNumber}" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="cellphoneNumber" value="Handy:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="cellphoneNumber" size="20" maxlength="255" value="#{customer.cellphoneNumber}" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+ </fieldset>
+ </div>
+
+ <div class="para">
+ <fieldset id="login_data">
+ <legend title="Zum Bestätigen wird Ihre Email-Adresse benötigt, für den Login Kundennummer und Passwort.">Email-Adresse und Passwort:</legend>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="emailAddress1" value="eMail-Adresse eingeben:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="emailAddress1" size="20" maxlength="255" value="#{customer.emailAddress}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="emailAddress2" value="eMail-Adresse wiederholen:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputText class="input" id="emailAddress2" size="20" maxlength="255" value="#{customer.emailAddress}" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="para"></div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="password1" value="Passwort eingeben:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputSecret class="input" id="password1" size="10" maxlength="255" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="password2" value="Passwort wiederholen:" />
+ </div>
+
+ <div class="table_right">
+ <h:inputSecret class="input" id="password2" size="10" maxlength="255" required="true" />
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="para notice">
+ Die Kundennummer wird Ihnen später vergeben.
+ </div>
+ </fieldset>
+ </div>
+
+ <div class="para">
+ <fieldset id="terms_privacy">
+ <legend title="Bitte die AGBs und Datenschutzbestimmungen lesen und akzeptieren.">Rechtliches:</legend>
+
+ <div class="table_row">
+ <div class="table_left25">
+ <h:selectBooleanCheckbox class="input" id="privacy" required="true" requiredMessage="Bitte den Datenschutzbestimmungen zustimmen.">
+ <f:validator validatorId="PrivacyTermsCheckboxValidator" />
+ </h:selectBooleanCheckbox>
+ </div>
+
+ <div class="table_right75">
+ Ja, ich habe die <h:link outcome="privacy" target="_blank" value="Datenschutzbestimmungen" /> gelesen und
+ auch verstanden.
+ </div>
+
+ <div class="clear"></div>
+ </div>
+
+ <div class="table_row">
+ <div class="table_left25">
+ <h:selectBooleanCheckbox class="input" id="terms" required="true" requiredMessage="Bitte den AGBs zustimmen.">
+ <f:validator validatorId="PrivacyTermsCheckboxValidator" />
+ </h:selectBooleanCheckbox>
+ </div>
+
+ <div class="table_right75">
+ Ja, ich habe die <h:link outcome="terms" target="_blank" value="Allgemeinen Geschäftsbedingungen" /> gelesen und
+ auch verstanden.
+ </div>
+
+ <div class="clear"></div>
+ </div>
+ </fieldset>
+ </div>
+
+ <div class="table_footer">
+ <h:commandButton class="reset" type="reset" value="Formular zurücksetzen" />
+ <h:commandButton class="submit" type="submit" id="register" value="Anmelden" action="#{controller.doRegister()}" />
+ </div>
+ </div>
+ </h:form>
+ </ui:define>
+
+ <ui:define name="footer">
+ <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />
+ </ui:define>
+ </ui:composition>
+</html>
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
- <ui:composition template="/WEB-INF/templates/base.tpl">
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="title">Impressum</ui:define>
<ui:define name="menu">
xmlns:basket="http://mxchange.org/jshop/tags/basket"
//-->
- <ui:composition template="/WEB-INF/templates/base.tpl">
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="title">Willkommen!</ui:define>
<ui:define name="menu">
<ui:define name="content">
<!--
TODO Not used!
- <basket:mini_basket basket="#{basket}" />
-
<h:panelGrid class="basket_item_table" columnClasses="table_data_column" headerClass="table_header_column">
<f:facet name="header">
Bestellen? Bestellmenge: Produkt: Einzelpreis:
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
- <ui:composition template="/WEB-INF/templates/base.tpl">
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="title">Datenschutzbestimmungen</ui:define>
<ui:define name="menu">
#top {
position: relative;
background-color: #036fab;
- color: white;
+ color: #ffffff;
padding: 5px;
margin: 0px 0px 10px 0px;
}
}
#top a:link, #top a:visited {
- color: white;
+ color: #ffffff;
font-weight : bold;
text-decoration: none;
}
#top a:link:hover, #top a:visited:hover {
- color: black;
+ color: #000000;
font-weight : bold;
text-decoration : underline;
}
.table_row {
width: 100%;
+ min-height: 20px;
}
.table_left {
width: 250px;
+ min-height: 20px;
float: left;
}
.table_right {
width: 200px;
+ min-height: 20px;
float: right;
}
.table_left25 {
width: 20px;
+ min-height: 20px;
float: left;
}
.table_right75 {
width: 430px;
+ min-height: 20px;
float: right;
}
}
h1 {
- border-bottom: 1px solid #AFAFAF;
+ border-bottom: 1px solid #AFAFAF;
font-size: 16px;
font-weight: bold;
margin: 0px;
padding: 0px;
- color: #D20005;
}
a:link, a:visited {
text-decoration: none;
}
-a:link:hover, a:visited:hover {
+a:link:hover, a:visited:hover {
color: #045491;
font-weight : bold;
text-decoration : underline;
}
+
+label {
+ vertical-align: middle;
+}
+++ /dev/null
-<%--
- Document : login
- Created on : 11.08.2015, 12:28:03
- Author : Roland Haeder
---%>
-
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-<c:set var="basePath" value="${pageContext.request.contextPath}" />
-
-<div id="login_form">
- <form action="${basePath}/form_handler/do_login.jsp" accept-charset="utf-8" id="form" method="post">
- <div class="table">
- <div class="table_header">
- Bitte geben Sie Ihre Kundennummer und Passwort ein:
- </div>
-
- <fieldset id="login_data">
- <legend title="Bitte Daten eingeben:">Bitte Daten eingeben:</legend>
-
- <div class="table_row">
- <div class="table_left">
- Kundennummer:
- </div>
- <div class="table_right">
- <input class="input" type="text" name="id" size="10" maxlength="20" />
- </div>
- </div>
-
- <div class="clear"></div>
-
- <div class="table_row">
- <div class="table_left">
- Passwort:
- </div>
- <div class="table_right">
- <input class="input" type="password" name="password" size="10" maxlength="255" />
- </div>
- </div>
-
- <div class="clear"></div>
- </fieldset>
-
- <div class="table_footer">
- <input type="hidden" name="redirect" value="<%=request.getRequestURI()%>" />
- <input class="reset" type="reset" value="Formular zurücksetzen" />
- <input class="submit" type="submit" name="send" value="Einloggen" />
- </div>
- </div>
- </form>
-</div>
+++ /dev/null
-<%--
- Document : gender_selection_box
- Created on : 11.08.2015, 13:02:12
- Author : Roland Haeder
---%>
-<%@page import="org.mxchange.jcore.contact.Gender"%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean"%>
-<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%>
-<%@page import="org.mxchange.pizzaapplication.beans.customer.CustomerBean" %>
-
-<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.beans.customer.PizzaServiceCustomerBean" type="CustomerBean" />
-<jsp:useBean id="controller" scope="session" class="org.mxchange.pizzaapplication.beans.controller.PizzaServiceBean" type="PizzaBean" />
-
-<select class="select" name="gender" id="gender" size="1" <%=controller.getDisabledHtmlFromSession(request, session)%>>
- <%
- // "Walk" through all genders and output them
- for (final Gender gender : Gender.values()) {
- %>
- <option value="<%=gender.name()%>"<%
- // Get gender from bean
- Gender customerGender = customer.getGender();
-
- // Test it
- if (customerGender.equals(gender)) {
- // Output selected="selected"
- out.print("selected=\"selected\"");
- }
- %>><%=gender%></option>
- <%
- }
- %>
-</select>
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
- <ui:composition template="/WEB-INF/templates/base.tpl">
+ <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
<ui:define name="title">Allgemeine Geschäftsbedingungen</ui:define>
<ui:define name="menu">