]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/WEB-INF/templates/login/user/user_change_email_address_repeat_fields.tpl
Used much more h:outputText instead of directly the message in the template. This...
[addressbook-war.git] / web / WEB-INF / templates / login / user / user_change_email_address_repeat_fields.tpl
index 3ca9f1281721fa4a2bf7a02f19a26315e499c185..b11235440c1b52c7d8f4551c3df7535e258e0dae 100644 (file)
@@ -12,7 +12,9 @@
                </div>
 
                <div class="table_right">
-                       <h:inputText class="input" id="emailAddress" size="20" maxlength="255" value="#{emailChangeController.emailAddress}" required="true" validator="EmailAddressValidator" />
+                       <h:inputText class="input" id="emailAddress" size="20" maxlength="255" value="#{emailChangeController.emailAddress}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_NOT_ENTERED}">
+                               <f:validator validatorId="EmailAddressValidator" />
+                       </h:inputText>
                </div>
 
                <div class="clear"></div>
                </div>
 
                <div class="table_right">
-                       <h:inputText class="input" id="emailAddressRepeat" size="20" maxlength="255" value="#{emailChangeController.emailAddressRepeat}" required="true" validator="EmailAddressValidator" />
+                       <h:inputText class="input" id="emailAddressRepeat" size="20" maxlength="255" value="#{emailChangeController.emailAddressRepeat}" required="true" requiredMessage="#{msg.EMAIL_ADDRESS_REPEAT_NOT_ENTERED}" />
                </div>
 
                <div class="clear"></div>
        </div>
+
+       <div>
+               <h:message for="emailAddress" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+       </div>
+
+       <div>
+               <h:message for="emailAddressRepeat" errorClass="errors" warnClass="warnings" fatalClass="errors" />
+       </div>
 </ui:composition>