Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring Validation ... Validator is working, but errors are not displaying
    primarykey
    data
    text
    <p>Ok I have two pages in my application that are very similar. addressForm.jsp, and termsForm.jsp .... Each page has a Spring validator for it's fields. Address form is working fine. The terms form validator runs, I see the errors in the errors object in the log, but the jsp is not displaying the errors.</p> <p>Address form ...</p> <pre><code>&lt;form:form htmlEscape="false" name="addressForm" commandName="vendorTransmittal" method="post" action="${onboardingActionUrl}"&gt; &lt;form:errors path="*" cssClass="errorblock" element="div"/&gt; </code></pre> <p>Terms form ... only difference is the encoding type, as the terms form has a file upload piece ... not sure if that could be messing up the error display.</p> <pre><code>&lt;form htmlEscape="false" name="termsForm" commandName="vendorTransmittal" method="post" action="${uploadFileUrl}" enctype="multipart/form-data"&gt; &lt;form:errors path="*" cssClass="errorblock" element="div"/&gt; </code></pre> <p>The errors are there</p> <p>[5/4/12 9:23:17:649 EDT] 0000003a SystemOut O 52945 [WebContainer : 6] DEBUG com.bedbath.vendorportal.onboarding.validator.TermsFormValidator - Retrieved error Field error in object 'vendorTransmittal' on field 'VTShippingMinimumTypeId': rejected value [1]; codes [invalidValue.shippingMinimumType.vendorTransmittal.VTShippingMinimumTypeId,invalidValue.shippingMinimumType.VTShippingMinimumTypeId,invalidValue.shippingMinimumType.java.lang.Integer,invalidValue.shippingMinimumType]; arguments []; default message [Shipping Minimum Type should not be entered if there is no Shipping Minimum]</p> <p>Controller recognizes the errors, and routes back to the same page as expected. They just don't display .</p> <p>Any thoughts ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload