Foros de discusión
AUI not adding error message class
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.
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
<aui:input type="text" model="<%= User.class %>" name="emailAddress" showrequiredlabel="false">
<c:if test="<%= PrefsPropsUtil.getBoolean(company.getCompanyId(), PropsKeys.USERS_EMAIL_ADDRESS_REQUIRED) %>">
<%-- START @author kzhang Add email validation --%>
<aui:validator name="email" />
<%-- END @author kzhang Add email validation --%>
<aui:validator name="required" />
</c:if>
</aui:input>
<%-- START @author kzhang Add confirm emaill address input field --%>
<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