]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Some fixes + added missing "extends Serializable"
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 12:38:38 +0000 (14:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 12:38:38 +0000 (14:38 +0200)
nbproject/faces-config.NavData
src/java/org/mxchange/jshopcore/model/category/PizzaCategoryConverter.java
src/java/org/mxchange/pizzaapplication/beans/product/PizzaAdminProductWebRequestController.java
web/WEB-INF/faces-config.xml
web/WEB-INF/templates/admin/admin_category_selection_box.tpl

index f2305e97d45590ed4550c04503c4ae705640c421..8236ca1cb7984be676f17ea7d64997696e96a762 100644 (file)
         <Node id="customer/register.xhtml" x="1150" y="150" zoom="true"/>
         <Node id="item_added.xhtml" x="150" y="750" zoom="true"/>
         <Node id="admin/admin_user_list.xhtml" x="400" y="450" zoom="true"/>
-        <Node id="admin/admin_logout.xhtml" x="900" y="600" zoom="true"/>
         <Node id="terms.xhtml" x="900" y="150" zoom="true"/>
-        <Node id="admin/admin_user_add.xhtml" x="400" y="150" zoom="true"/>
+        <Node id="admin/admin_logout.xhtml" x="900" y="600" zoom="true"/>
         <Node id="customer/lost_passwd.xhtml" x="650" y="600" zoom="true"/>
+        <Node id="admin/admin_user_add.xhtml" x="400" y="150" zoom="true"/>
         <Node id="admin/admin_user_edit.xhtml" x="150" y="150" zoom="true"/>
         <Node id="errorHandler.xhtml" x="650" y="150" zoom="true"/>
         <Node id="index.xhtml" x="150" y="450" zoom="true"/>
@@ -22,9 +22,9 @@
         <Node id="admin/admin_category.xhtml" x="150" y="900" zoom="true"/>
         <Node id="customer/checkout_done.xhtml" x="650" y="450" zoom="true"/>
         <Node id="admin/admin_user_unlock.xhtml" x="400" y="300" zoom="true"/>
+        <Node id="*" x="1650" y="150" zoom="true"/>
         <Node id="customer/login.xhtml" x="900" y="450" zoom="true"/>
         <Node id="imprint.xhtml" x="400" y="750" zoom="true"/>
-        <Node id="*" x="1650" y="150" zoom="true"/>
         <Node id="admin/admin_product.xhtml" x="1400" y="150" zoom="true"/>
         <Node id="customer/empty_basket.xhtml" x="1150" y="450" zoom="true"/>
     </Scope>
index bbd6116e6e9ba9453f07c4cf2c02d124248e5226..9df4097bd6ac386ac60f78316eb5a9e8535c74f3 100644 (file)
@@ -108,6 +108,9 @@ public class PizzaCategoryConverter implements Converter {
                                        break;
                                }
                        }
+
+                       // Debug message
+                       this.loggerBeanLocal.logDebug(MessageFormat.format("getAsObject: category={0}", category)); //NOI18N
                } catch (final NumberFormatException ex) {
                        // Log exception (maybe to much?)
                        this.loggerBeanLocal.logException(ex);
index db59c24e4ba4b04f6da103f2c7e55202525f78f5..77128eff6605336042c98eb0c1e8368d3269aeb1 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.pizzaapplication.beans.product;
 
+import java.io.Serializable;
 import java.util.List;
 import javax.faces.view.facelets.FaceletException;
 import org.mxchange.jshopcore.model.category.Category;
@@ -26,7 +27,7 @@ import org.mxchange.jshopcore.model.product.Product;
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-public interface PizzaAdminProductWebRequestController {
+public interface PizzaAdminProductWebRequestController extends Serializable {
 
        /**
         * Adds given product data from request to database
index ce4dfa8c90d46ccf79c14e2d805879b889675172..6b5c7a4ec583c2bd9addc0beb890835da7552ea5 100644 (file)
                        <to-view-id>/*</to-view-id>
                </navigation-case>
        </navigation-rule>
-       <application>
-               <locale-config>
-                       <default-locale>de</default-locale>
-                       <supported-locale>en_US</supported-locale>
-               </locale-config>
-       </application>
 </faces-config>
index 578349c27eddb8153458331657c2688da141290f..fff96a5a6c2af39236f229fda611c2db5747b438 100644 (file)
@@ -4,7 +4,7 @@
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
 
-       <h:selectOneMenu class="select" id="productCategory" value="#{adminProductController.productCategory}" required="true" requiredMessage="#{msg.ADMIN_CATEGORY_MUST_BE_SELECTED}" converter="CategoryConverter">
+       <h:selectOneMenu class="select" id="product_category" value="#{adminProductController.productCategory}" required="true" requiredMessage="#{msg.ADMIN_CATEGORY_MUST_BE_SELECTED}" converter="CategoryConverter">
                <f:selectItems value="#{shopController.allCategories}" var="cat" itemValue="#{cat}" itemLabel="#{cat.categoryTitle}" />
        </h:selectOneMenu>
 </ui:composition>