From: Roland Häder Date: Sun, 20 Aug 2017 18:29:37 +0000 (+0200) Subject: MOJARRA - Please cherry-pick: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c1be03f08f72321b7509967cd6c5d56e57d16b84;p=pizzaservice-war.git MOJARRA - Please cherry-pick: - introduced own (still project-local) taglib for message template replacement - now this is much shorter, down to only one JSF tag instead of 2-3 minimum Signed-off-by: Roland Häder --- diff --git a/web/WEB-INF/generic.jsf.taglib.xml b/web/WEB-INF/generic.jsf.taglib.xml new file mode 100644 index 00000000..68ac2a69 --- /dev/null +++ b/web/WEB-INF/generic.jsf.taglib.xml @@ -0,0 +1,57 @@ + + + + http://mxchange.org/jsf/core + + outputMessageBox + This tag renders a style-able and customizable message for any kind of messages that the user should see. + resources/tags/generic/generic/messages/message_box.tpl + + message + The message that should be place into the message box. You may also use EL code here that resolves to a message string. + true + java.lang.String + + + styleClass + The optional CSS style class to be forwarded on the h:outputText's styleClass attribute of the message. The default is "okay" which normally renders as a green colored message. + false + java.lang.String + + + + outputMessageBoxMini + This tag renders a style-able and customizable mini message for any kind of messages that the user should see. It is similar to outputMessageBox tag but it renders a smaller box instead. + resources/tags/generic/generic/messages/message_box_mini.tpl + + message + The message that should be place into the message box. You may also use EL code here that resolves to a message string. + true + java.lang.String + + + styleClass + The optional CSS style class to be forwarded on the h:outputText's styleClass attribute of the message. The default is "okay" which normally renders as a green colored message. + false + java.lang.String + + + diff --git a/web/WEB-INF/resources/tags/generic/messages/message_box.tpl b/web/WEB-INF/resources/tags/generic/messages/message_box.tpl new file mode 100644 index 00000000..c32fdf7b --- /dev/null +++ b/web/WEB-INF/resources/tags/generic/messages/message_box.tpl @@ -0,0 +1,33 @@ + + + +
+
+ +
+ + + +
+ +
+
+ + +
+ +
+
+
+ + +
+ +
+
+
+
diff --git a/web/WEB-INF/resources/tags/generic/messages/message_box_mini.tpl b/web/WEB-INF/resources/tags/generic/messages/message_box_mini.tpl new file mode 100644 index 00000000..35cd54ad --- /dev/null +++ b/web/WEB-INF/resources/tags/generic/messages/message_box_mini.tpl @@ -0,0 +1,33 @@ + + + +
+
+ +
+ + + +
+ +
+
+ + +
+ +
+
+
+ + +
+ +
+
+
+
diff --git a/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl index 1fc03955..b172a81f 100644 --- a/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_contact_links.tpl @@ -1,16 +1,12 @@ - - - - - - +
diff --git a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl index 8ee9b405..ddc82a43 100644 --- a/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl +++ b/web/WEB-INF/templates/admin/contact/admin_form_contact_data.tpl @@ -6,6 +6,9 @@ xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
+ + +
@@ -19,6 +22,7 @@
+
@@ -251,6 +255,7 @@
+
diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl index e3cc014a..b1e06064 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_add_show.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl index 532ef872..1a0deff8 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_data.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl b/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl index 42e0f26d..037cac38 100644 --- a/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_fax_links.tpl @@ -1,16 +1,12 @@ - - - - - - +
    diff --git a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl index 180ad4c0..c0198241 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_add_contact_fax.tpl @@ -1,16 +1,12 @@ - - - - - - + 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 index c3aa9fff..e1b74edd 100644 --- a/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl +++ b/web/WEB-INF/templates/admin/fax/admin_form_fax_data.tpl @@ -1,56 +1,54 @@ - - - - - + + + +
    +
    + + + + + +
    + +
    + +
    + +
    + +
    +
    + + +
    + +
    + +
    + + + +
    + +
    +
    + + + + + + + + +
    +
    - -
    -
    - - - - - -
    - -
    - -
    - -
    - -
    -
    - - -
    - -
    - -
    - - - -
    - -
    -
    - - - - - - - - -
    -
    diff --git a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl index d81e62cc..272ab53c 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_add_contact_landline.tpl @@ -1,16 +1,12 @@ - - - - - - + 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 index 52cc1c22..f10df164 100644 --- a/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_form_landline_data.tpl @@ -1,56 +1,54 @@ - - - - - + + + +
    +
    + + + + + +
    + +
    + +
    + +
    + +
    +
    + + +
    + +
    + +
    + + + +
    + +
    +
    + + + + + + + + +
    +
    - -
    -
    - - - - - -
    - -
    - -
    - -
    - -
    -
    - - -
    - -
    - -
    - - - -
    - -
    -
    - - - - - - - - -
    -
    diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl index 82b3ecf4..ca57e430 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_add_show.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl index 4e8b11b6..8a905c2c 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_data.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl b/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl index 25b36dd3..aa6a44e6 100644 --- a/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl +++ b/web/WEB-INF/templates/admin/landline/admin_landline_links.tpl @@ -1,16 +1,12 @@ - - - - - - +
      diff --git a/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl b/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl index b4892289..036ba693 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_form_add_contact_mobile.tpl @@ -1,16 +1,12 @@ - - - - - - + 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 index 9f56cfa1..54898df3 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_form_mobile_data.tpl @@ -1,72 +1,70 @@ - - - - - - + -
      -
      - - - + +
      +
      + + + - -
      - -
      + +
      + +
      -
      - -
      +
      + +
      -
      -
      +
      +
      - -
      - -
      + +
      + +
      -
      - - - - - -
      +
      + + + + + +
      -
      +
      - - + + + -
      - -
      - -
      + +
      + +
      -
      - - - -
      +
      + + + +
      -
      +
      - - + + + -
      -
      -
      +
      +
      +
      diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl index 9580d1da..2519b588 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_add_show.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl index fbcc22db..8a022bd4 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_data.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl b/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl index 0458bd9b..69d4688e 100644 --- a/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl +++ b/web/WEB-INF/templates/admin/mobile/admin_mobile_links.tpl @@ -1,16 +1,12 @@ - - - - - - +
        diff --git a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl index 74042e47..5f8e7edc 100644 --- a/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl +++ b/web/WEB-INF/templates/admin/user/admin_form_user_data.tpl @@ -1,16 +1,12 @@ - - - - - - +
        diff --git a/web/WEB-INF/templates/admin/user/admin_user_links.tpl b/web/WEB-INF/templates/admin/user/admin_user_links.tpl index d7c209c6..6cb6f61f 100644 --- a/web/WEB-INF/templates/admin/user/admin_user_links.tpl +++ b/web/WEB-INF/templates/admin/user/admin_user_links.tpl @@ -1,16 +1,12 @@ - - - - - - +
        diff --git a/web/WEB-INF/templates/input_fields/fax_input_fields.tpl b/web/WEB-INF/templates/input_fields/fax_input_fields.tpl index ef3ec8cc..730a35f6 100644 --- a/web/WEB-INF/templates/input_fields/fax_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/fax_input_fields.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/input_fields/landline_input_fields.tpl b/web/WEB-INF/templates/input_fields/landline_input_fields.tpl index b8ae8946..29be6416 100644 --- a/web/WEB-INF/templates/input_fields/landline_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/landline_input_fields.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl b/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl index 1bfa5771..6a60fc2c 100644 --- a/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl +++ b/web/WEB-INF/templates/input_fields/mobile_input_fields.tpl @@ -1,20 +1,16 @@ - - - - - - + - + diff --git a/web/WEB-INF/templates/login/user/user_base.tpl b/web/WEB-INF/templates/login/user/user_base.tpl index 00c63b1c..0b1d2110 100644 --- a/web/WEB-INF/templates/login/user/user_base.tpl +++ b/web/WEB-INF/templates/login/user/user_base.tpl @@ -2,6 +2,7 @@ @@ -14,12 +15,8 @@ - - - - - - + + diff --git a/web/WEB-INF/templates/messages/message_box.tpl b/web/WEB-INF/templates/messages/message_box.tpl deleted file mode 100644 index 07c5b1e4..00000000 --- a/web/WEB-INF/templates/messages/message_box.tpl +++ /dev/null @@ -1,34 +0,0 @@ - - - -
        -
        - -
        - - - -
        - -
        -
        - - -
        - -
        -
        -
        - - -
        - -
        -
        -
        -
        diff --git a/web/WEB-INF/templates/messages/message_box_mini.tpl b/web/WEB-INF/templates/messages/message_box_mini.tpl deleted file mode 100644 index e8e1c560..00000000 --- a/web/WEB-INF/templates/messages/message_box_mini.tpl +++ /dev/null @@ -1,34 +0,0 @@ - - - -
        -
        - -
        - - - -
        - -
        -
        - - -
        - -
        -
        -
        - - -
        - -
        -
        -
        -
        diff --git a/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl b/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl index c09e757a..7e748eaa 100644 --- a/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl +++ b/web/WEB-INF/templates/selection_boxes/personal_title_selection_box.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/templates/user/user_profile_link.tpl b/web/WEB-INF/templates/user/user_profile_link.tpl index 47abe987..aa275dce 100644 --- a/web/WEB-INF/templates/user/user_profile_link.tpl +++ b/web/WEB-INF/templates/user/user_profile_link.tpl @@ -1,16 +1,12 @@ - - - - - - + diff --git a/web/WEB-INF/web.xml b/web/WEB-INF/web.xml index 0e5f62a3..ee444f96 100644 --- a/web/WEB-INF/web.xml +++ b/web/WEB-INF/web.xml @@ -3,7 +3,12 @@ A pizza shop application, created and open-sourced while I was at my JavaEE training. Pizza-Service Application v1.0 - Project stage. + Generic custom JSF tags library + javax.faces.FACELETS_LIBRARIES + /WEB-INF/generic.jsf.taglib.xml + + + Project stage javax.faces.PROJECT_STAGE Development diff --git a/web/admin/business_contacts/admin_business_contacts_list.xhtml b/web/admin/business_contacts/admin_business_contacts_list.xhtml index ab2de3f3..1544f835 100644 --- a/web/admin/business_contacts/admin_business_contacts_list.xhtml +++ b/web/admin/business_contacts/admin_business_contacts_list.xhtml @@ -1,6 +1,7 @@ @@ -14,12 +15,7 @@
        - - - - - - + @@ -55,9 +51,9 @@ - + - + diff --git a/web/admin/contact/admin_contact_delete.xhtml b/web/admin/contact/admin_contact_delete.xhtml index e334721f..7cb4a543 100644 --- a/web/admin/contact/admin_contact_delete.xhtml +++ b/web/admin/contact/admin_contact_delete.xhtml @@ -1,6 +1,7 @@ @@ -8,7 +9,7 @@ - + @@ -21,12 +22,7 @@ - - - - - - + diff --git a/web/admin/contact/admin_contact_edit.xhtml b/web/admin/contact/admin_contact_edit.xhtml index 41ed4f56..c6e61f72 100644 --- a/web/admin/contact/admin_contact_edit.xhtml +++ b/web/admin/contact/admin_contact_edit.xhtml @@ -1,6 +1,7 @@ @@ -21,12 +22,7 @@ - - - - - - + diff --git a/web/admin/contact/admin_contact_export.xhtml b/web/admin/contact/admin_contact_export.xhtml index 942d4470..93075510 100644 --- a/web/admin/contact/admin_contact_export.xhtml +++ b/web/admin/contact/admin_contact_export.xhtml @@ -1,6 +1,7 @@ - - - - - - + diff --git a/web/admin/contact/admin_contact_list.xhtml b/web/admin/contact/admin_contact_list.xhtml index a7a50196..22f33510 100644 --- a/web/admin/contact/admin_contact_list.xhtml +++ b/web/admin/contact/admin_contact_list.xhtml @@ -1,6 +1,7 @@ @@ -14,12 +15,7 @@ - - - - - - + @@ -85,7 +81,9 @@
        - + + +
- - - - - - + diff --git a/web/guest/user/user_profile.xhtml b/web/guest/user/user_profile.xhtml index 34296e01..8d92dbb5 100644 --- a/web/guest/user/user_profile.xhtml +++ b/web/guest/user/user_profile.xhtml @@ -1,6 +1,7 @@ @@ -8,7 +9,7 @@ - + @@ -30,12 +31,7 @@ - - - - - - +
@@ -43,16 +39,12 @@ +
- - - - - - +
diff --git a/web/guest/user/user_register.xhtml b/web/guest/user/user_register.xhtml index 792cf678..e3492f8e 100644 --- a/web/guest/user/user_register.xhtml +++ b/web/guest/user/user_register.xhtml @@ -1,6 +1,7 @@ @@ -34,18 +35,8 @@ - - - - - - + - - - - - - + diff --git a/web/guest/user/user_register_page2.xhtml b/web/guest/user/user_register_page2.xhtml index 2c982608..4f946eef 100644 --- a/web/guest/user/user_register_page2.xhtml +++ b/web/guest/user/user_register_page2.xhtml @@ -1,6 +1,7 @@ @@ -14,6 +15,8 @@ + +
@@ -27,12 +30,5 @@ - - - - - - - diff --git a/web/guest/user/user_resend_done.xhtml b/web/guest/user/user_resend_done.xhtml index f291735a..917d14c2 100644 --- a/web/guest/user/user_resend_done.xhtml +++ b/web/guest/user/user_resend_done.xhtml @@ -1,6 +1,7 @@ @@ -14,8 +15,6 @@ - - - + diff --git a/web/guest/user/user_resend_link.xhtml b/web/guest/user/user_resend_link.xhtml index 92742a69..6686887a 100644 --- a/web/guest/user/user_resend_link.xhtml +++ b/web/guest/user/user_resend_link.xhtml @@ -1,6 +1,7 @@ @@ -53,11 +54,6 @@ - - - - - - + diff --git a/web/user/login_contact_data_saved.xhtml b/web/user/login_contact_data_saved.xhtml index 170e5fcb..02a00061 100644 --- a/web/user/login_contact_data_saved.xhtml +++ b/web/user/login_contact_data_saved.xhtml @@ -1,6 +1,7 @@ @@ -14,18 +15,14 @@ - - - - - + + + - - diff --git a/web/user/login_data_saved.xhtml b/web/user/login_data_saved.xhtml index 6ddb2373..22fa37c0 100644 --- a/web/user/login_data_saved.xhtml +++ b/web/user/login_data_saved.xhtml @@ -1,6 +1,7 @@ @@ -14,11 +15,7 @@ - - - - - + diff --git a/web/user/login_user_change_email_address.xhtml b/web/user/login_user_change_email_address.xhtml index 36821750..51fbabae 100644 --- a/web/user/login_user_change_email_address.xhtml +++ b/web/user/login_user_change_email_address.xhtml @@ -1,6 +1,7 @@ @@ -14,6 +15,8 @@ + +
@@ -51,13 +54,6 @@ - - - - - - - diff --git a/web/user/login_user_change_password.xhtml b/web/user/login_user_change_password.xhtml index 7eddb313..f5cf8969 100644 --- a/web/user/login_user_change_password.xhtml +++ b/web/user/login_user_change_password.xhtml @@ -1,6 +1,7 @@ @@ -14,11 +15,7 @@ - - - - - + @@ -78,12 +75,7 @@ - - - - - - + diff --git a/web/user/login_user_change_personal_data.xhtml b/web/user/login_user_change_personal_data.xhtml index 18b8be0d..5794b68a 100644 --- a/web/user/login_user_change_personal_data.xhtml +++ b/web/user/login_user_change_personal_data.xhtml @@ -1,6 +1,7 @@ @@ -33,12 +34,7 @@ - - - - - - + diff --git a/web/user/login_user_contact_data_saved.xhtml b/web/user/login_user_contact_data_saved.xhtml index 047c2649..8384359b 100644 --- a/web/user/login_user_contact_data_saved.xhtml +++ b/web/user/login_user_contact_data_saved.xhtml @@ -1,6 +1,7 @@ @@ -14,23 +15,14 @@ - - - - - + + + - - - - - - - diff --git a/web/user/login_user_data_saved.xhtml b/web/user/login_user_data_saved.xhtml index aa7c6062..7324ebb0 100644 --- a/web/user/login_user_data_saved.xhtml +++ b/web/user/login_user_data_saved.xhtml @@ -1,6 +1,7 @@ @@ -14,11 +15,7 @@ - - - - - +