From 8a249c22b25b9de7125cdcd7436148c34468baaa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 27 Aug 2017 00:56:30 +0200 Subject: [PATCH] Please cherry-pick: - converted template to custom JSF tag widgets:outputAdminContactDataFormFields and replaced all occurrences, 2 optional parameter "formMode" (ex. "mode" and "allowEmptyRequiredData" are accepted MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../admin/contact/admin_form_contact_data.tpl | 3 --- .../user_personal_title_table_row.tpl | 2 +- .../user/admin_form_user_personal_data.tpl | 3 ++- web/WEB-INF/widgets.jsf.taglib.xml | 17 +++++++++++++++++ web/admin/contact/admin_contact_edit.xhtml | 4 +--- web/admin/contact/admin_contact_list.xhtml | 4 +--- 6 files changed, 22 insertions(+), 11 deletions(-) rename web/WEB-INF/{templates => resources/tags}/admin/contact/admin_form_contact_data.tpl (98%) diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl similarity index 98% rename from web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl rename to web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl index 59ac6584..964049c0 100644 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/resources/tags/admin/contact/admin_form_contact_data.tpl @@ -7,9 +7,6 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> - - -
diff --git a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl index c28166e7..ce8b5e88 100644 --- a/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl +++ b/web/WEB-INF/resources/tags/table_rows/user_personal_title_table_row.tpl @@ -15,7 +15,7 @@
- + diff --git a/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl b/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl index 9628451e..53c67426 100644 --- a/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_form_user_personal_data.tpl @@ -1,6 +1,7 @@ @@ -13,5 +14,5 @@
- + diff --git a/web/WEB-INF/widgets.jsf.taglib.xml b/web/WEB-INF/widgets.jsf.taglib.xml index aa4259be..e0d1ac34 100644 --- a/web/WEB-INF/widgets.jsf.taglib.xml +++ b/web/WEB-INF/widgets.jsf.taglib.xml @@ -128,4 +128,21 @@ along with this program. If not, see . org.mxchange.jcoreee.bean.faces.BaseFacesBean + + outputAdminContactDataFormFields + This tag renders a fieldset for administrative purposes of contact data. + resources/tags/admin/contact/admin_form_contact_data.tpl + + allowEmptyRequiredData + Whether allow the personal title to be left empty. This might be the case when you create a user and want to select a contact from a selection box. EL code resolving to a boolean may be allowed here. + false + java.lang.Boolean + + + formMode + Mode of the form, can be one of "add" or "edit", defaulting to "add". + false + java.lang.String + + diff --git a/web/admin/contact/admin_contact_edit.xhtml b/web/admin/contact/admin_contact_edit.xhtml index b1371aff..c762a9dd 100644 --- a/web/admin/contact/admin_contact_edit.xhtml +++ b/web/admin/contact/admin_contact_edit.xhtml @@ -36,9 +36,7 @@ - - - + - - - +