]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/templates/admin/admin_category_selection_box.tpl
The exception's message now contains the thrown exception's message, too.
[pizzaservice-war.git] / web / WEB-INF / templates / admin / admin_category_selection_box.tpl
index 8783f813a8bb3e6d5b32962afc1d17cd41d76b08..578349c27eddb8153458331657c2688da141290f 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="category_id">
-               <f:selectItems value="#{controller.allCategories}" var="categoryId" itemValue="#{categoryId.categoryId}" itemLabel="#{categoryId.title}" />
+       <h:selectOneMenu class="select" id="productCategory" 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>