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"
- xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
+ xmlns:f="http://xmlns.jcp.org/jsf/core">
- <f:metadata>
- <f:viewParam id="userId" name="userId" value="#{userController.userId}" required="true" requiredMessage="#{msg.PARAMETER_USER_ID_MISSING}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" validatorMessage="#{msg.PARAMETER_USER_ID_NOT_FOUND}">
- <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
- <f:validator for="userId" validatorId="UserIdValidator" />
- </f:viewParam>
- </f:metadata>
+ <ui:composition template="/WEB-INF/templates/#{userLoginController.baseTemplatePathName}_base.tpl">
+ <ui:define name="metadata">
+ <f:metadata>
+ <f:viewParam id="userId" name="userId" value="#{userController.userId}" required="true" requiredMessage="#{msg.PARAMETER_USER_ID_MISSING}" converterMessage="#{msg.PARAMETER_USER_ID_INVALID}" validatorMessage="#{msg.PARAMETER_USER_ID_NOT_FOUND}">
+ <f:convertNumber for="userId" type="number" minIntegerDigits="1" maxIntegerDigits="20" />
+ <f:validator for="userId" validatorId="UserIdValidator" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="login_title">
+ <h:outputText value="#{msg.PAGE_TITLE_USER_LOGIN_USER_PROFILE}" />
+ </ui:define>
- <ui:composition template="/WEB-INF/templates/#{userLoginController.templateType}/#{userLoginController.templateType}_base.tpl">
- <ui:define name="login_title">#{msg.PAGE_TITLE_LOGIN_USER_PROFILE}</ui:define>
- <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_USER_PROFILE}</ui:define>
+ <ui:define name="guest_title">
+ <h:outputText value="#{msg.PAGE_TITLE_INDEX_USER_PROFILE}" />
+ </ui:define>
<ui:define name="content_header">
- #{msg.CONTENT_TITLE_INDEX_USER_PROFILE}
+ <h:outputText value="#{msg.CONTENT_TITLE_INDEX_USER_PROFILE}" />
</ui:define>
<ui:define name="content">
</ui:fragment>
<ui:fragment rendered="#{not profileController.isProfileLinkVisibleById(userController.userId)}">
- #{msg.ERROR_PROFILE_NOT_VISIBLE}
+ <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+ <ui:param name="message" value="#{msg.ERROR_PROFILE_NOT_VISIBLE}" />
+ <ui:param name="styleClass" value="errors" />
+ </ui:include>
</ui:fragment>
<ui:fragment rendered="#{profileController.isProfileLinkVisibleById(userController.userId)}">
<div align="center">
<h:panelGrid styleClass="table" headerClass="table_header" footerClass="table_footer">
<f:facet name="header">
- #{msg.PUBLIC_USER_PROFILE}
+ <h:outputText value="#{msg.PUBLIC_USER_PROFILE}" />
</f:facet>
</h:panelGrid>
</div>
</ui:fragment>
<ui:fragment rendered="#{not userController.isPublicUserProfileEnabled()}">
- <h:outputText styleClass="errors" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
+ <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+ <ui:param name="message" value="#{msg.ERROR_GUEST_USER_PROFILE_DEACTIVATED}" />
+ <ui:param name="styleClass" value="errors" />
+ </ui:include>
</ui:fragment>
</ui:define>
</ui:composition>