From: Roland Haeder Date: Wed, 16 Sep 2015 08:39:55 +0000 (+0200) Subject: Minor fixes: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17668c7f6249fe706ea5ffcc602d33f562ccfdde;hp=db590822b8cbc4ba960bd5e0d783ed6aa0944957;p=pizzaservice-war.git Minor fixes: - need to name this "gender", else a warning is issued - ignored for internationalization Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java b/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java index 21d2738f..28808ea1 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java @@ -149,16 +149,16 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon // Is the bean set? if (this.basketController != null) { // Abort here - throw new NullPointerException("basketController is null"); + throw new NullPointerException("basketController is null"); //NOI18N } // Are at least the required fields set? if (!this.isRequiredPersonalDataSet()) { // Not set, should not happen - return "checkout2"; + return "checkout2"; //NOI18N } else if (this.basketController.isEmpty()) { // Nothing to order - return "empty_basket"; + return "empty_basket"; //NOI18N } // Create customer instance @@ -181,14 +181,14 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon } catch (final JMSException ex) { // TODO: Log exception? // Not working - return "jms_failed"; + return "jms_failed"; //NOI18N } // Clear basket this.basketController.clear(); // All fine - return "checkout_done"; + return "checkout_done"; //NOI18N } @Override @@ -353,7 +353,7 @@ public class CheckoutWebBean extends BaseFrameworkBean implements CheckoutWebCon */ private Customer createCustomer () { // Required personal data must be set - assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; + assert (this.isRequiredPersonalDataSet()) : "not all personal data is set"; //NOI18N // Create new customer instance Customer customer = new ShopCustomer(); diff --git a/web/WEB-INF/templates/generic/gender_selection_box.tpl b/web/WEB-INF/templates/generic/gender_selection_box.tpl index 84d66b9a..2a5dd7dc 100644 --- a/web/WEB-INF/templates/generic/gender_selection_box.tpl +++ b/web/WEB-INF/templates/generic/gender_selection_box.tpl @@ -5,7 +5,7 @@ xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets"> - +