xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
- <div class="para">
- <fieldset class="fieldset" id="current_password">
- <legend title="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND_TITLE}">
- <h:outputText value="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND}" />
- </legend>
+ <ui:fragment rendered="#{empty targetController}">
+ <ui:include src="/WEB-INF/templates/generic/message_box.tpl">
+ <ui:param name="message" value="#{msg.ERROR_PARAMETER_TARGET_CONTROLLER_NOT_SET}" />
+ <ui:param name="styleClass" value="errors" />
+ </ui:include>
+ </ui:fragment>
- <div class="table_row">
- <div class="table_left">
- <h:outputLabel for="currentPassword" value="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRM}" />
- </div>
+ <ui:fragment rendered="#{not empty targetController}">
+ <div class="para">
+ <fieldset class="fieldset" id="current_password">
+ <legend title="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND_TITLE}">
+ <h:outputText value="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRMATION_LEGEND}" />
+ </legend>
- <div class="table_right">
- <h:inputSecret styleClass="input" id="currentPassword" size="10" maxlength="255" value="#{userLoginController.currentPassword}" required="true" validatorMessage="#{msg.ERROR_USER_CURRENT_PASSWORD_MISMATCHING}">
- <!-- <f:validator for="currentPassword" validatorId="RecruiterUserPasswordValidator" /> //-->
- </h:inputSecret>
- </div>
+ <div class="table_row">
+ <div class="table_left">
+ <h:outputLabel for="currentPassword" value="#{msg.LOGIN_ENTER_CURRENT_PASSWORD_CONFIRM}" />
+ </div>
- <div class="clear"></div>
+ <div class="table_right">
+ <h:inputSecret styleClass="input" id="currentPassword" size="10" maxlength="255" value="#{targetController.currentPassword}" required="true" validatorMessage="#{msg.ERROR_USER_CURRENT_PASSWORD_MISMATCHING}">
+ <!-- <f:validator for="currentPassword" validatorId="RecruiterUserPasswordValidator" /> //-->
+ </h:inputSecret>
+ </div>
- <h:panelGroup styleClass="error_container" layout="block">
- <h:message for="currentPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
- </h:panelGroup>
- </div>
- </fieldset>
- </div>
+ <div class="clear"></div>
+
+ <h:panelGroup styleClass="error_container" layout="block">
+ <h:message for="currentPassword" errorClass="errors" fatalClass="errors" warnClass="errors" />
+ </h:panelGroup>
+ </div>
+ </fieldset>
+ </div>
+ </ui:fragment>
</ui:composition>
<h:form id="form_login_change_personal">
<ui:include src="/WEB-INF/templates/contact/form_contact_data.tpl" />
- <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl" />
+ <ui:include src="/WEB-INF/templates/login/user/user_enter_current_password.tpl">
+ <ui:param name="targetController" value="#{userLoginController}" />
+ </ui:include>
<ui:include src="/WEB-INF/templates/guest/guest_privacy_terms.tpl" />