From 7cec58af6f42f34f6b5288a9f70b2029f97d8bb5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 25 Apr 2020 18:48:28 +0200 Subject: [PATCH] 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../FinancialAdminCategoryWebRequestBean.java | 5 ++- .../localization/product_de_DE.properties | 2 + .../localization/product_en_US.properties | 2 + web/WEB-INF/product.jsf.taglib.xml | 43 ------------------- .../admin_form_generic_product_data.tpl | 5 +-- .../admin_product_price_input_panel_grid.tpl} | 28 ++++-------- web/WEB-INF/web.xml | 2 +- .../admin_generic_product_list.xhtml | 14 +++++- .../admin_product_category_list.xhtml | 22 ++++++++-- 9 files changed, 50 insertions(+), 73 deletions(-) delete mode 100644 web/WEB-INF/product.jsf.taglib.xml rename web/WEB-INF/{resources/tags/input/panel_grid/generic_product/product_price_input_panel_grid.tpl => templates/admin/generic_product/admin_product_price_input_panel_grid.tpl} (68%) 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/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 @@ - + - @@ -23,38 +21,30 @@ - + /> - - + emptyValue="focus" + minValue="0" + maxValue="100" + /> - + /> 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 @@ - + + + + + + -- 2.39.5