From 8ed95f6af6858cb7711cd55141a1abb7cfb11a69 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 14 Sep 2015 10:42:30 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20refactured=20index=20page=20as?= =?utf8?q?=20this=20was=20not=20working=20(why,=20JSF=20team=3F)=20-=20add?= =?utf8?q?ed=20very=20basic=20item=20basket=20(total=20amount=20to=20pay?= =?utf8?q?=20is=20missing=20+=20link=20to=20checkout=20page)=20-=20updated?= =?utf8?q?=20jars=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore-ee-logger.jar | Bin 8006 -> 8032 bytes lib/jcoreee.jar | Bin 18214 -> 18445 bytes lib/jshop-core.jar | Bin 26828 -> 26658 bytes lib/jshop-ee-lib.jar | Bin 6618 -> 6643 bytes .../localization/bundle_de_DE.properties | 1 + .../localization/bundle_en_US.properties | 1 + .../beans/basket/BasketWebBean.java | 26 +++-- .../beans/basket/BasketWebController.java | 18 +++- .../beans/product/AdminProductWebBean.java | 9 +- web/admin/admin_logout.xhtml | 27 +++++ web/basket.xhtml | 49 +++++++++- web/index.xhtml | 92 ++++++++++-------- web/resources/css/cssLayout.css | 4 +- 13 files changed, 170 insertions(+), 57 deletions(-) create mode 100644 web/admin/admin_logout.xhtml diff --git a/lib/jcore-ee-logger.jar b/lib/jcore-ee-logger.jar index 6d0e98ca34bb9da22fe71b465ba1765a785a8053..9631578315fa23cab8f95f90e90b3013588b16ea 100644 GIT binary patch delta 968 zcmaJ=QAkr!7(Vyj?anPuxit-Tb#6o0Q0{eTZYA^PCOXv8AwBdqm)@a z>do!E1s0TVK@>h^27%#IioN+1U(h?pEF!d!VBm8=l}oj`|p4M^W81=gNjoV zg2jPQ6GCssl?o2w*W*fZ)2*-Q2qC?aNQ+S=oQ^~*&w~O*>~%2nGeivuauH@{xEQmK zxCFDGxiJj+3Yk*Y%paf0+OjRo)A6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HcL2 allItems () { + // Deligate to basket instance + return this.basket.getAll(); + } + + @Override + public Float calculateCurrentItemPrice () { // Is the current item/amount set? if (this.getCurrentItem() == null) { // Current item is null @@ -135,6 +141,15 @@ public class BasketWebBean extends BaseFrameworkBean implements BasketWebControl return totalPrice; } + @Override + public Float calculateItemPrice (final AddableBasketItem item) { + // Caculate item's price + Float totalPrice = (item.getProduct().getPrice() * item.getAmount()); + + // Return it + return totalPrice; + } + @Override public Long getAmount () { return this.amount; @@ -243,13 +258,10 @@ public class BasketWebBean extends BaseFrameworkBean implements BasketWebControl AddableBasketItem fake = new BasketItem(product); // Get all items - Map map = this.basket.getAll(); + List list = this.basket.getAll(); // Check all entries - for (Map.Entry entrySet : map.entrySet()) { - // Get item - AddableBasketItem item = entrySet.getValue(); - + for (final AddableBasketItem item : list) { // item must not be null if (null == item) { // Abort here diff --git a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebController.java b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebController.java index ad81ef88..2f6c212e 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/basket/BasketWebController.java @@ -17,6 +17,7 @@ package org.mxchange.pizzaapplication.beans.basket; import java.io.Serializable; +import java.util.List; import org.mxchange.jshopcore.model.basket.AddableBasketItem; import org.mxchange.jshopcore.model.product.Product; @@ -93,7 +94,15 @@ public interface BasketWebController extends Serializable { * * @return Current item's total price */ - public Float calculateItemPrice (); + public Float calculateCurrentItemPrice (); + + /** + * Calculates total price (no tax added) for given item. + * + * @param item Item instance to calculate total price for + * @return Total price + */ + public Float calculateItemPrice (final AddableBasketItem item); /** * Getter for last entry @@ -108,4 +117,11 @@ public interface BasketWebController extends Serializable { * @return Last num rows */ public int getLastNumRows (); + + /** + * Gets for all added items + * + * @return A list of all added items + */ + public List allItems (); } diff --git a/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java index c37417d8..335ed468 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/product/AdminProductWebBean.java @@ -26,9 +26,9 @@ import javax.naming.NamingException; import org.mxchange.jcoreee.beans.BaseFrameworkBean; import org.mxchange.jshopcore.exceptions.CannotAddProductException; import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; +import org.mxchange.jshopcore.model.product.AdminProductSessionBeanRemote; import org.mxchange.jshopcore.model.product.GenericProduct; import org.mxchange.jshopcore.model.product.Product; -import org.mxchange.jshopcore.model.product.ProductSessionBeanRemote; import org.mxchange.pizzaapplication.beans.controller.ShopWebController; /** @@ -44,7 +44,6 @@ public class AdminProductWebBean extends BaseFrameworkBean implements AdminProdu * Serial number */ private static final long serialVersionUID = 5_819_375_183_472_871L; - /** * Property available @@ -64,7 +63,7 @@ public class AdminProductWebBean extends BaseFrameworkBean implements AdminProdu /** * Remote bean for products */ - private final ProductSessionBeanRemote productBean; + private final AdminProductSessionBeanRemote productBean; /** * Shop bean @@ -87,7 +86,7 @@ public class AdminProductWebBean extends BaseFrameworkBean implements AdminProdu InitialContext context = new InitialContext(); // Try to lookup the bean - this.productBean = (ProductSessionBeanRemote) context.lookup("ejb/stateless-product"); //NOI18N + this.productBean = (AdminProductSessionBeanRemote) context.lookup("ejb/stateless-admin-product"); //NOI18N } @Override @@ -136,7 +135,7 @@ public class AdminProductWebBean extends BaseFrameworkBean implements AdminProdu } @Override - public void setId (Long id) { + public void setId (final Long id) { this.id = id; } diff --git a/web/admin/admin_logout.xhtml b/web/admin/admin_logout.xhtml new file mode 100644 index 00000000..708bd900 --- /dev/null +++ b/web/admin/admin_logout.xhtml @@ -0,0 +1,27 @@ + + + + + Ausloggen + + + + + + + Aus dem Adminbereich ausloggen + + + + Offenes TODO. + + + + + + + diff --git a/web/basket.xhtml b/web/basket.xhtml index 184cf2d1..ffe36a04 100644 --- a/web/basket.xhtml +++ b/web/basket.xhtml @@ -6,18 +6,61 @@ > - Warenkorb + Warenkorb anzeigen - Warenkorb + Alle im Warenkorb befindlichen Artikel: - Hier wird der Warenkorb angezeigt. + + + Artikel: + + + #{item.product.title} + + + + + Einzelpreis: + + + + + + + + + + Anzahl ändern: + + + + + + + + + + + + + Zwischensumme: + + + + + + + + diff --git a/web/index.xhtml b/web/index.xhtml index bd72baff..4c3d08db 100644 --- a/web/index.xhtml +++ b/web/index.xhtml @@ -22,51 +22,65 @@ - -
-
- Folgendes kann bestellt werden: -
+
+
+ Folgendes kann bestellt werden:
+
+ + + +
+
+ #{product.title} +
+ +
+
+ + + - - - - - - + + + + + + - - - - - - - + +
+ #{basketController.amount} +
- - - - - - + - - - - - - +
+
+
- - - - - - - +
+ Einzelpreis: + + + +
+ +
+ Zwischensumme: + + + + +
+
+
+
+
diff --git a/web/resources/css/cssLayout.css b/web/resources/css/cssLayout.css index 57d90016..ed37fb5a 100644 --- a/web/resources/css/cssLayout.css +++ b/web/resources/css/cssLayout.css @@ -1,5 +1,5 @@ /** -div { +div, table { border: 1px solid #ff0000; } /**/ @@ -115,7 +115,7 @@ table, .table { ul.footer_nav { text-align: center; - width : 100%; + /*width : 95%;*/ list-style: none; margin: 0px; } -- 2.39.5