]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Minor fixes:
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:39:55 +0000 (10:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:39:55 +0000 (10:39 +0200)
- need to name this "gender", else a warning is issued
- ignored for internationalization
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java
web/WEB-INF/templates/generic/gender_selection_box.tpl

index 21d2738f165c05ca83c9a5d6b598b007b280a9ea..28808ea1dfb6cb5cd1e706ef646ed0b3e5505631 100644 (file)
@@ -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();
index 84d66b9a208d86671acaebe8942e1c092241c002..2a5dd7dcd03b6bad01f411215182819ac44199bb 100644 (file)
@@ -5,7 +5,7 @@
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
 
-       <h:selectOneMenu class="select" id="gender_selection" value="#{customer.gender}">
+       <h:selectOneMenu class="select" id="gender" value="#{customer.gender}">
                <f:selectItems value="#{gender.selectableGenders}" var="g" itemValue="#{g}" itemLabel="#{msg[g.messageKey]}" />
        </h:selectOneMenu>
 </ui:composition>