From 84879f39fcb52941b43d80c3f9c5c971f0c7e5fa Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 6 Aug 2015 15:15:54 +0200 Subject: [PATCH] =?utf8?q?Added=20more=20fields=20the=20user=20may=20want?= =?utf8?q?=20to=20fill=20out=20+=20used=20some=20beans=20Signed-off-by:Rol?= =?utf8?q?and=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../pizzaapplication/customer/Customer.java | 3 +- .../customer/bean/CustomerBean.java | 16 +++++- web/finished.jsp | 2 + web/order.jsp | 57 +++++++++++++++---- web/style.css | 2 +- 5 files changed, 65 insertions(+), 15 deletions(-) diff --git a/src/java/org/mxchange/pizzaapplication/customer/Customer.java b/src/java/org/mxchange/pizzaapplication/customer/Customer.java index 8dd11480..7d2cf5f4 100644 --- a/src/java/org/mxchange/pizzaapplication/customer/Customer.java +++ b/src/java/org/mxchange/pizzaapplication/customer/Customer.java @@ -19,9 +19,10 @@ package org.mxchange.pizzaapplication.customer; import org.mxchange.jcore.contact.Contact; /** + * A customer interface * * @author Roland Haeder */ public interface Customer extends Contact { - + } diff --git a/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java b/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java index 459f5bcf..e1edf34c 100644 --- a/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java +++ b/src/java/org/mxchange/pizzaapplication/customer/bean/CustomerBean.java @@ -16,12 +16,24 @@ */ package org.mxchange.pizzaapplication.customer.bean; +import org.mxchange.pizzaapplication.customer.Customer; import org.mxchange.pizzaapplication.customer.PizzaServiceCustomer; /** + * A customer bean which hides the customer instance * * @author Roland Haeder */ -public class CustomerBean extends PizzaServiceCustomer { - +public class CustomerBean extends PizzaServiceCustomer implements Customer { + + /** + * Default constructor + */ + public CustomerBean () { + // Init customer instance + Customer customer = new PizzaServiceCustomer(); + + // Set it here + this.setContact(customer); + } } diff --git a/web/finished.jsp b/web/finished.jsp index 68322e02..61b604ba 100644 --- a/web/finished.jsp +++ b/web/finished.jsp @@ -4,7 +4,9 @@ Author : Roland Haeder --%> +<%-- <%@page errorPage="errorHandler.jsp" %> +--%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.util.Map"%> diff --git a/web/order.jsp b/web/order.jsp index a6a3b851..cc190c17 100644 --- a/web/order.jsp +++ b/web/order.jsp @@ -10,8 +10,12 @@ <%@page import="org.mxchange.pizzaapplication.product.Product"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%> +<%@page import="org.mxchange.pizzaapplication.customer.Customer" %> <%@page contentType="text/html" pageEncoding="UTF-8"%> + + + <% // Init application instance PizzaApplication app = PizzaServiceApplication.getInstance(application); @@ -119,10 +123,20 @@ -
- Bitte Ihre Daten eingeben: +
+ Bitte Ihre Daten eingeben: +
+
+ +
+
+ /> +
+
+
+
@@ -134,10 +148,10 @@
- +
- /> + />
@@ -147,27 +161,27 @@
- /> + />
- +
- /> + />
- +
- /> + />
@@ -184,10 +198,30 @@
- + +
+
+ /> +
+
+
+ +
+
+ +
+
+ /> +
+
+
+ +
+
+
- /> + />
@@ -197,6 +231,7 @@ + /> diff --git a/web/style.css b/web/style.css index 18c45f57..61515f97 100644 --- a/web/style.css +++ b/web/style.css @@ -9,7 +9,7 @@ } .data_right { - width: 100px; + width: 150px; float: right; } -- 2.39.5