From: Roland Häder Date: Sat, 25 Apr 2020 16:48:28 +0000 (+0200) Subject: Product-only X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7cec58af6f42f34f6b5288a9f70b2029f97d8bb5;p=jfinancials-war.git Product-only - admin_product_price_input_panel_grid.tpl to a ui:include with fixed backing bean reference for type-safety - decimalSeparator and thousandSeparator are both not localizable, let's dump them then and current user's locale will handle it - FSC number exposed in product list and modal - categoryEntryUpdated exposed in admin-list-category view - removed unneeded id attribute - removed product.jsf.taglib.xml Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jfinancials/beans/product_category/FinancialAdminCategoryWebRequestBean.java b/src/java/org/mxchange/jfinancials/beans/product_category/FinancialAdminCategoryWebRequestBean.java index ec0721c4..e1a5185c 100644 --- a/src/java/org/mxchange/jfinancials/beans/product_category/FinancialAdminCategoryWebRequestBean.java +++ b/src/java/org/mxchange/jfinancials/beans/product_category/FinancialAdminCategoryWebRequestBean.java @@ -180,7 +180,10 @@ public class FinancialAdminCategoryWebRequestBean extends BaseFinancialsBean imp */ private Category createCategoryInstance () { // Create category - final Category category = new ProductCategory(this.getCategoryI18nKey(), this.getCategoryShownInStatistics()); + final Category category = new ProductCategory( + this.getCategoryI18nKey(), + this.getCategoryShownInStatistics() + ); // Set all optional fields category.setParentCategory(this.getParentCategory()); diff --git a/src/java/org/mxchange/localization/product_de_DE.properties b/src/java/org/mxchange/localization/product_de_DE.properties index 983ae2de..36d982fb 100644 --- a/src/java/org/mxchange/localization/product_de_DE.properties +++ b/src/java/org/mxchange/localization/product_de_DE.properties @@ -203,3 +203,5 @@ ADMIN_ENTER_GENERIC_PRODUCT_FSC_NUMBER_TITLE=Geben Sie die FSC-Nummer des Produk ERROR_PRODUCT_FSC_NUMBER_NOT_VALID=Fehler: FSC-Nummer des Produktes entspricht nicht dem Format: Cxxxxxx #@TODO Please fix German umlauts! ADMIN_GENERIC_PRODUCT_NOT_UPDATED=Sie haben keine Aenderungen am dem Produkt vorgenommen. +ADMIN_PRODUCT_FSC_NUMBER_HEADER=FSC-Nummer: +PRODUCT_FSC_NUMBER_TITLE=The FSC-Nummer des Produktes. diff --git a/src/java/org/mxchange/localization/product_en_US.properties b/src/java/org/mxchange/localization/product_en_US.properties index a4a2996e..e2e86e0b 100644 --- a/src/java/org/mxchange/localization/product_en_US.properties +++ b/src/java/org/mxchange/localization/product_en_US.properties @@ -162,3 +162,5 @@ ADMIN_ENTER_GENERIC_PRODUCT_FSC_NUMBER=Enter FSC number: ADMIN_ENTER_GENERIC_PRODUCT_FSC_NUMBER_TITLE=Enter product's FSC number with leading C and 6 digits. ERROR_PRODUCT_FSC_NUMBER_NOT_VALID=Error: FSC number not valid format: Cxxxxxx ADMIN_GENERIC_PRODUCT_NOT_UPDATED=You have not changed any product data. +ADMIN_PRODUCT_FSC_NUMBER_HEADER=FSC number: +PRODUCT_FSC_NUMBER_TITLE=The FSC number of the product. diff --git a/web/WEB-INF/product.jsf.taglib.xml b/web/WEB-INF/product.jsf.taglib.xml deleted file mode 100644 index d9254e25..00000000 --- a/web/WEB-INF/product.jsf.taglib.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - http://mxchange.org/jsf/jproduct/widgets - - inputProductPricePanelGrid - This tag renders input fields for creating a price panel grid for product prices. - resources/tags/input/panel_grid/generic_product/product_price_input_panel_grid.tpl - - rendered - Whether this tag is being rendered by JSF engine (default: true). - false - java.lang.Boolean - - - targetController - A target backing bean (EL code resolving into it) extending at least BaseFacesBean where to set the data in. - true - - org.mxchange.jcoreee.bean.faces.BaseFacesBean - - - diff --git a/web/WEB-INF/resources/tags/input/panel_grid/generic_product/product_price_input_panel_grid.tpl b/web/WEB-INF/resources/tags/input/panel_grid/generic_product/product_price_input_panel_grid.tpl deleted file mode 100644 index 2fb59b28..00000000 --- a/web/WEB-INF/resources/tags/input/panel_grid/generic_product/product_price_input_panel_grid.tpl +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/WEB-INF/templates/admin/generic_product/admin_form_generic_product_data.tpl b/web/WEB-INF/templates/admin/generic_product/admin_form_generic_product_data.tpl index c2ed32d6..29ad4f67 100644 --- a/web/WEB-INF/templates/admin/generic_product/admin_form_generic_product_data.tpl +++ b/web/WEB-INF/templates/admin/generic_product/admin_form_generic_product_data.tpl @@ -1,7 +1,6 @@ - + + + + + + + + + + + + + + + + + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index f2174ccc..0c57d37c 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -30,7 +30,7 @@ Generic custom JSF tags library javax.faces.FACELETS_LIBRARIES - /WEB-INF/widgets.jsf.taglib.xml;/WEB-INF/validators.jsf.taglib.xml;/WEB-INF/links.jsf.taglib.xml;/WEB-INF/project-links.jsf.taglib.xml;/WEB-INF/product.jsf.taglib.xml;/WEB-INF/product-links.jsf.taglib.xml + /WEB-INF/widgets.jsf.taglib.xml;/WEB-INF/validators.jsf.taglib.xml;/WEB-INF/links.jsf.taglib.xml;/WEB-INF/project-links.jsf.taglib.xml;;/WEB-INF/product-links.jsf.taglib.xml Project stage diff --git a/web/admin/generic_product/admin_generic_product_list.xhtml b/web/admin/generic_product/admin_generic_product_list.xhtml index 8343e6f8..cb23b86b 100644 --- a/web/admin/generic_product/admin_generic_product_list.xhtml +++ b/web/admin/generic_product/admin_generic_product_list.xhtml @@ -2,7 +2,6 @@ + + + + + + + + diff --git a/web/admin/product_category/admin_product_category_list.xhtml b/web/admin/product_category/admin_product_category_list.xhtml index ee96d9f2..9f5f9f64 100644 --- a/web/admin/product_category/admin_product_category_list.xhtml +++ b/web/admin/product_category/admin_product_category_list.xhtml @@ -2,7 +2,6 @@ - + + + + + + + @@ -241,7 +250,12 @@ - + + + + + +