Foros de discusión

AUI not adding error message class

thumbnail
Robin Nagpal, modificado hace 9 años.

AUI not adding error message class

Junior Member Mensajes: 44 Fecha de incorporación: 18/11/14 Mensajes recientes
I have a registration form which has AUI validation e.g.

          <aui:input type="text" model="<%= User.class %>" name="emailAddress" showrequiredlabel="false">
				<c:if test="<%= PrefsPropsUtil.getBoolean(company.getCompanyId(), PropsKeys.USERS_EMAIL_ADDRESS_REQUIRED) %>">
					&lt;%-- START @author kzhang Add email validation --%&gt;
                    <aui:validator name="email" />
                    &lt;%-- END @author kzhang Add email validation --%&gt;
                    <aui:validator name="required" />
				</c:if>
			</aui:input>
            &lt;%-- START @author kzhang Add confirm emaill address input field --%&gt;
            <aui:input type="text" name="confirmEmailAddress" showrequiredlabel="false">
                <aui:validator name="equalTo" errormessage="email-dont-match-enter-same">
                     '#<portlet:namespace />emailAddress'
                </aui:validator>
                <aui:validator name="email" />
                <aui:validator name="required" />
            </aui:input>


The validations are working fine, but AUI is not adding the error class to the control groups. I am just facing the problem in this form. For other forms error class is added by AUI