Back Forum Reply New

Validation message not showing

pareTo(UserAnswerMode.USER_DESC) == 0) {        ValidationUtils.rejectIfEmptyOrWhitespace(errors, quot;userDescriptionquot;, quot;userAnswer.userDescription.requiredquot;);    }}       }          }
}
JSP:

Code:       lt;c:choosegt;   lt;c:when test=quot;${numAnswers gt; 0}quot; gt;    lt;table class=quot;lfr-tablequot;gt;    lt;trgt;    lt;tdgt;           lt;table class=quot;lfr-tablequot;gt;       lt;c:forEach items=quot;${answers}quot; var=quot;answerquot;gt;lt;trgt;lt;c:choosegt;    lt;c:when test=quot;${answer.answerMode == 'SELECTION'}quot; gt;        lt;tdgt;lt;form:radiobutton path=quot;selectedAnswersquot; value=quot;${answer.id}quot;/gt; ${answer.description}lt;/tdgt;    lt;/c:whengt;    lt;ctherwisegt;    lt;tdgt;        lt;form:radiobutton path=quot;selectedAnswersquot; value=quot;${answer.id}quot;/gt;        ${answer.description} lt;form:input cssClass=quot;portlet-form-input-fieldquot; path=quot;userDescriptionquot; size=quot;30quot; maxlength=quot;255quot; /gt;    lt;/tdgt;    lt;/ctherwisegt;lt;/c:choosegt;lt;/trgt;       lt;/c:forEachgt;
lt;/tablegt;        lt;/tdgt;    lt;tdgt;    lt;form:errors cssClass=quot;portlet-msg-errorquot; path=quot;selectedAnswersquot; /gt;lt;br /gt;    lt;form:errors cssClass=quot;portlet-msg-errorquot; path=quot;userDescriptionquot; /gt;    lt;/tdgt;    lt;/trgt;    lt;/tablegt;   lt;/c:whengt;   lt;ctherwisegt;       lt;spring:message code=quot;survey.label.noAnswersquot;/gt;   lt;/ctherwisegt;
lt;/c:choosegt;
Thank you for your help.
¥
Back Forum Reply New