From 7d048a9a22eb86116dcaac240d9e14299ea82c0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org> Date: Wed, 19 Apr 2017 17:41:08 +0200 Subject: [PATCH] Please cherry-pick: - text should be wrapped in h:outputText as this is like a GUI for web browsers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder <roland@mxchange.org> --- .../mobile/admin_contact_mobile_list.xhtml | 4 +- .../mobile/admin_contact_mobile_unlink.xhtml | 4 +- web/guest/user/login.xhtml | 4 +- web/user/login_contact_data_saved.xhtml | 37 +++++++++++++++++++ web/user/login_edit_user_data.xhtml | 4 +- 5 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 web/user/login_contact_data_saved.xhtml diff --git a/web/admin/mobile/admin_contact_mobile_list.xhtml b/web/admin/mobile/admin_contact_mobile_list.xhtml index b8c0d07b..17b42720 100644 --- a/web/admin/mobile/admin_contact_mobile_list.xhtml +++ b/web/admin/mobile/admin_contact_mobile_list.xhtml @@ -8,7 +8,9 @@ > <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"> - <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_CELLPHONE}</ui:define> + <ui:define name="admin_title"> + <h:outputText value="#{msg.PAGE_TITLE_ADMIN_LIST_CONTACT_CELLPHONE}" /> + </ui:define> <ui:define name="content_header"> <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_LIST_CONTACT_CELLPHONE}" /> diff --git a/web/admin/mobile/admin_contact_mobile_unlink.xhtml b/web/admin/mobile/admin_contact_mobile_unlink.xhtml index fadc8b53..836c6aca 100644 --- a/web/admin/mobile/admin_contact_mobile_unlink.xhtml +++ b/web/admin/mobile/admin_contact_mobile_unlink.xhtml @@ -13,7 +13,9 @@ </f:metadata> <ui:composition template="/WEB-INF/templates/admin/admin_base.tpl"> - <ui:define name="admin_title">#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_CELLPHONE}</ui:define> + <ui:define name="admin_title"> + <h:outputText value="#{msg.PAGE_TITLE_ADMIN_UNLINK_CONTACT_CELLPHONE}" /> + </ui:define> <ui:define name="content_header"> <h:outputText value="#{msg.CONTENT_TITLE_ADMIN_UNLINK_CONTACT_CELLPHONE}" /> diff --git a/web/guest/user/login.xhtml b/web/guest/user/login.xhtml index 5ee98148..ffe5e525 100644 --- a/web/guest/user/login.xhtml +++ b/web/guest/user/login.xhtml @@ -8,7 +8,9 @@ > <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl" id="user_login"> - <ui:define name="guest_title">#{msg.PAGE_TITLE_USER_LOGIN}</ui:define> + <ui:define name="guest_title"> + <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN}" /> + </ui:define> <ui:define name="content_header"> <h:outputText value="#{msg.CONTENT_TITLE_USER_LOGIN}" /> diff --git a/web/user/login_contact_data_saved.xhtml b/web/user/login_contact_data_saved.xhtml new file mode 100644 index 00000000..b2807f0d --- /dev/null +++ b/web/user/login_contact_data_saved.xhtml @@ -0,0 +1,37 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html + lang="#{localizationController.language}" xml:lang="#{localizationController.language}" + xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://xmlns.jcp.org/jsf/facelets" + xmlns:h="http://xmlns.jcp.org/jsf/html" + xmlns:f="http://xmlns.jcp.org/jsf/core" + > + + <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"> + <ui:define name="login_title"> + <h:outputText value="#{msg.PAGE_TITLE_LOGIN_CONTACT_DATA_SAVED}" /> + </ui:define> + + <ui:define name="content_header"> + <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_CONTACT_DATA_SAVED}" /> + </ui:define> + + <ui:define name="content"> + <ui:fragment rendered="#{userLoginController.isUserLoggedIn() and featureController.isFeatureEnabled('edit_user_data') and (not userLoginController.ifUserMustChangePassword() or not featureController.isFeatureEnabled('user_must_change_password'))}"> + <ui:include src="/WEB-INF/templates/generic/message_box.tpl"> + <ui:param name="message" value="#{msg.LOGIN_MESSAGE_DATA_SAVED}" /> + </ui:include> + </ui:fragment> + + <ui:fragment rendered="#{userLoginController.ifUserMustChangePassword()}"> + <h:link outcome="user_change_password" value="#{msg.USER_LOGIN_MUST_CHANGE_PASSWORD}" /> + </ui:fragment> + + <h:outputText styleClass="errors" value="#{msg.ERROR_LOGIN_USER_EDIT_DATA_DISABLED}" rendered="#{not featureController.isFeatureEnabled('edit_user_data')}" /> + + <ui:fragment rendered="#{not userLoginController.isUserLoggedIn()}"> + <ui:include src="/WEB-INF/templates/user/user_not_logged_in.tpl" /> + </ui:fragment> + </ui:define> + </ui:composition> +</html> diff --git a/web/user/login_edit_user_data.xhtml b/web/user/login_edit_user_data.xhtml index 96a0f0f1..73e9e262 100644 --- a/web/user/login_edit_user_data.xhtml +++ b/web/user/login_edit_user_data.xhtml @@ -8,7 +8,9 @@ > <ui:composition template="/WEB-INF/templates/login/user/user_base.tpl"> - <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_EDIT_USER_DATA}</ui:define> + <ui:define name="login_title"> + <h:outputText value="#{msg.PAGE_TITLE_LOGIN_EDIT_USER_DATA}" /> + </ui:define> <ui:define name="content_header"> <h:outputText value="#{msg.CONTENT_TITLE_LOGIN_EDIT_USER_DATA}" /> -- 2.39.5