From: Roland Häder Date: Sun, 27 Aug 2017 13:21:06 +0000 (+0200) Subject: Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=593423b33d1c92d40886efcf572908c1a20a28ca;p=addressbook-war.git Please cherry-pick: - converted administrative fax, land-line and mobile number data templates as custom JSF tags, having again more type-safe tags instead of outputting messages on missing bean properties Signed-off-by: Roland Häder --- diff --git a/web/WEB-INF/resources/tags/admin/form_data/fax/admin_form_fax_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/fax/admin_form_fax_data.tpl new file mode 100644 index 00000000..4d773ad2 --- /dev/null +++ b/web/WEB-INF/resources/tags/admin/form_data/fax/admin_form_fax_data.tpl @@ -0,0 +1,28 @@ + + + + +
+ + + + + +
+ +
+ +
+ +
+
+ + +
+
+
diff --git a/web/WEB-INF/resources/tags/admin/form_data/landline/admin_form_landline_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/landline/admin_form_landline_data.tpl new file mode 100644 index 00000000..8461e52e --- /dev/null +++ b/web/WEB-INF/resources/tags/admin/form_data/landline/admin_form_landline_data.tpl @@ -0,0 +1,28 @@ + + + + +
+ + + + + +
+ +
+ +
+ +
+
+ + +
+
+
diff --git a/web/WEB-INF/resources/tags/admin/form_data/mobile/admin_form_mobile_data.tpl b/web/WEB-INF/resources/tags/admin/form_data/mobile/admin_form_mobile_data.tpl new file mode 100644 index 00000000..6e454c15 --- /dev/null +++ b/web/WEB-INF/resources/tags/admin/form_data/mobile/admin_form_mobile_data.tpl @@ -0,0 +1,60 @@ + + + + +
+ + + + + +
+ +
+ +
+ +
+
+ + +
+ +
+ +
+ + + + + +
+
+ + + + + + +
+ +
+ +
+ + + +
+
+ + + + +
+
+
diff --git a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl deleted file mode 100644 index 78e7d6e5..00000000 --- a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -
- - - - - -
- -
- -
- -
-
- - -
-
-
diff --git a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl deleted file mode 100644 index 6c9a55a4..00000000 --- a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - -
- - - - - -
- -
- -
- -
-
- - -
-
-
diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl deleted file mode 100644 index 9eb576d1..00000000 --- a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - -
- - - - - -
- -
- -
- -
-
- - -
- -
- -
- - - - - -
-
- - - - - - -
- -
- -
- - - -
-
- - - - -
-
-
diff --git a/web/WEB-INF/widgets.jsf.taglib.xml b/web/WEB-INF/widgets.jsf.taglib.xml index 66d02b6b..11287cce 100644 --- a/web/WEB-INF/widgets.jsf.taglib.xml +++ b/web/WEB-INF/widgets.jsf.taglib.xml @@ -138,6 +138,57 @@ along with this program. If not, see . java.lang.Boolean + + outputAdminFaxDataFormFields + This tag renders a fieldset for administrative purposes of fax data. + resources/tags/admin/form_data/fax/admin_form_fax_data.tpl + + faxNumber + The fax instance that provides the data for this tag. + true + org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber + + + rendered + Whether this tag is being rendered by JSF engine. + false + java.lang.Boolean + + + + outputAdminLandLineDataFormFields + This tag renders a fieldset for administrative purposes of land-line data. + resources/tags/admin/form_data/landline/admin_form_landline_data.tpl + + landLineNumber + The fax instance that provides the data for this tag. + true + org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber + + + rendered + Whether this tag is being rendered by JSF engine. + false + java.lang.Boolean + + + + outputAdminMobileDataFormFields + This tag renders a fieldset for administrative purposes of mobile data. + resources/tags/admin/form_data/mobile/admin_form_mobile_data.tpl + + mobileNumber + The mobile instance that provides the data for this tag. + true + org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber + + + rendered + Whether this tag is being rendered by JSF engine. + false + java.lang.Boolean + + outputAdminUserDataFormFields This tag renders a fieldset for administrative purposes of user data. diff --git a/web/admin/fax/admin_fax_edit.xhtml b/web/admin/fax/admin_fax_edit.xhtml index 81562422..8df391cf 100644 --- a/web/admin/fax/admin_fax_edit.xhtml +++ b/web/admin/fax/admin_fax_edit.xhtml @@ -30,7 +30,7 @@ - + - + - +