import org.mxchange.jproduct.exceptions.CannotAddProductException;
import org.mxchange.jproduct.exceptions.ProductTitleAlreadyUsedException;
import org.mxchange.jproduct.model.category.Category;
+import org.mxchange.jproduct.model.product.AdminProductSessionBeanRemote;
import org.mxchange.jproduct.model.product.GenericProduct;
import org.mxchange.jproduct.model.product.Product;
-import org.mxchange.jproduct.model.product.AdminProductSessionBeanRemote;
import org.mxchange.pizzaapplication.beans.BasePizzaBean;
/**
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
-
- <ui:define name="login_title">
- <h:outputText value="#{msg.PAGE_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_USER_SHOW_ADDRESSBOOK_ENTRIES}" />
- </ui:define>
-
- <ui:define name="content">
- <!-- @TODO Here goes your content. //-->
- </ui:define>
-</ui:composition>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
-
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_CATEGORY}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_CATEGORY}" />
- </ui:define>
-
- <ui:define name="content">
- <!-- @TODO Here goes your content. //-->
- </ui:define>
-</ui:composition>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core">
-
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_CATEGORIES}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_CATEGORIES}" />
- </ui:define>
-
- <ui:define name="content">
- <div class="para">
- <h:dataTable id="categories" var="cat" value="#{categoryController.allCategories}" styleClass="table" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_ADMIN_CATEGORY}">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_CATEGORY_ID}" />
- </f:facet>
-
- <h:link outcome="admin_edit_category" title="#{msg.ADMIN_LINK_EDIT_DELETE_CATEGORY_TITLE}" value="#{cat.categoryId}">
- <f:param name="categoryId" value="#{cat.categoryId}" />
- </h:link>
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE}" />
- </f:facet>
-
- <h:outputText value="#{cat.categoryTitle}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_PARENT_CATEGORY}" />
- </f:facet>
-
- <h:outputText value="#{cat.parentCategory.categoryId}" />
- </h:column>
- </h:dataTable>
- </div>
-
- <div class="para">
- <h:form id="form_add_category">
- <div class="table">
- <div class="table_header">
- <h:outputText value="#{msg.ADMIN_ADD_CATEGORY_TITLE}" />
- </div>
-
- <fieldset id="product_data">
- <legend>
- <h:outputText value="#{msg.PLEASE_FILL_ALL_FIELDS}" />
- </legend>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE}" />
-
- <div class="tiny">
- <h:outputText value="#{msg.ADMIN_ENTER_CATEGORY_TITLE_EXAMPLE}" />
- </div>
- </div>
-
- <div class="table_right">
- <h:inputText class="input" id="guest_title" value="#{adminCategoryController.categoryTitle}" size="10" maxlength="255" required="true" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.ADMIN_PARENT_CATEGORY}" />
- </div>
-
- <div class="table_right">
- <ui:include src="/WEB-INF/templates/admin/category/admin_parent_category_selection_box.tpl" />
- </div>
-
- <div class="clear"></div>
- </div>
- </fieldset>
-
- <div class="table_footer">
- <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" action="#{adminCategoryController.addCategory()}" value="#{msg.ADMIN_BUTTON_ADD_CATEGORY}" />
- </div>
- </div>
- </h:form>
- </div>
- </ui:define>
-</ui:composition>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
- lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- >
-
- <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_DELETE_PRODUCT}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_DELETE_PRODUCT}" />
- </ui:define>
-
- <ui:define name="content">
- <!-- @TODO Here goes your content. //-->
- </ui:define>
- </ui:composition>
-</html>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
- lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- >
-
- <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_EDIT_PRODUCT}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_EDIT_PRODUCT}" />
- </ui:define>
-
- <ui:define name="content">
- <!-- @TODO Here goes your content. //-->
- </ui:define>
- </ui:composition>
-</html>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
- lang="#{localizationController.language}" xml:lang="#{localizationController.language}"
- xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:f="http://xmlns.jcp.org/jsf/core"
- >
-
- <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl">
- <ui:define name="admin_title">
- <h:outputText value="#{msg.PAGE_TITLE_ADMIN_PRODUCTS}" />
- </ui:define>
-
- <ui:define name="content_header">
- <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_PRODUCTS}" />
- </ui:define>
-
- <ui:define name="content">
- <div class="para">
- <h:dataTable id="product_table" var="product" value="#{adminProductController.allProducts}" styleClass="table" summary="#{msg.TABLE_SUMMARY_ADMIN_PRODUCTS}">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_TITLE_PRODUCT_NUMBER}" />
- </f:facet>
-
- <h:link outcome="admin_edit_product" title="#{msg.ADMIN_LINK_EDIT_DELETE_PRODUCT_TITLE}" value="#{product.productId}">
- <f:param name="productId" value="#{product.productId}" />
- </h:link>
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.ADMIN_TITLE_PRODUCT_TITLE}" />
- </f:facet>
-
- <h:outputText value="#{product.productTitle}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.SINGLE_PRODUCT_PRICE}" />
- </f:facet>
-
- <h:outputText value="#{product.productPrice}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.CATEGORY}" />
- </f:facet>
-
- <h:outputText value="#{product.productCategory.categoryTitle}" />
- </h:column>
-
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{msg.IS_AVAILABLE}" />
- </f:facet>
-
- <h:outputText value="#{product.productAvailability}" />
- </h:column>
- </h:dataTable>
- </div>
-
- <div class="para">
- <h:form id="form_add_product">
- <div class="table">
- <div class="table_header">
- <h:outputText value="#{msg.ADMIN_ADD_PRODUCT_TITLE}" />
- </div>
-
- <fieldset id="product_data">
- <legend>
- <h:outputText value="#{msg.PLEASE_FILL_ALL_FIELDS}" />
- </legend>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.ADMIN_ENTER_PRODUCT_TITLE}" />
-
- <div class="tiny">
- <h:outputText value="#{msg.ADMIN_ENTER_PRODUCT_TITLE_EXAMPLE}" />
- </div>
- </div>
-
- <div class="table_right">
- <h:inputText class="input" id="product_title" size="10" maxlength="255" required="true" value="#{adminProductController.productTitle}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.ADMIN_ENTER_SINGLE_PRODUCT_PRICE}" />
-
- <div class="tiny">
- <h:outputText value="#{msg.ADMIN_ENTER_PRODUCT_PRICE_EXAMPLE}" />
- </div>
- </div>
-
- <div class="table_right">
- <h:inputText class="input" id="product_price" size="10" maxlength="255" required="true" value="#{adminProductController.productPrice}" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.CATEGORY}" />
- </div>
-
- <div class="table_right">
- <ui:include src="/WEB-INF/templates/admin/category/admin_category_selection_box.tpl" />
- </div>
-
- <div class="clear"></div>
- </div>
-
- <div class="table_row">
- <div class="table_left">
- <h:outputText value="#{msg.IS_AVAILABLE}" />
- </div>
-
- <div class="table_right">
- <h:selectOneListbox required="true" id="available" value="#{adminProductController.productAvailability}" size="1" class="select">
- <f:selectItem itemValue="true" itemLabel="#{msg.CHOICE_YES}" />
- <f:selectItem itemValue="false" itemLabel="#{msg.CHOICE_NO}" />
- </h:selectOneListbox>
- </div>
-
- <div class="clear"></div>
- </div>
- </fieldset>
-
- <div class="table_footer">
- <h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" id="add" action="#{adminProductController.addProduct()}" value="#{msg.ADMIN_BUTTON_ADD_PRODUCT}" />
- </div>
- </div>
- </h:form>
- </div>
-
- <div class="para">
- <h:outputText value="#{msg.ADMIN_ADD_PRODUCT_NOTICE_TITLE}" />
- <ul>
- <li><h:outputText value="#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE1}" /></li>
- <li><h:outputText value="#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE2}" /></li>
- <li><h:outputText value="#{msg.ADMIN_ADD_PRODUCT_NOTICE_LINE3}" /></li>
- </ul>
- </div>
- </ui:define>
- </ui:composition>
-</html>