Announcement Announcement Module
Collapse
No announcement yet.
Very strange: Errors dissapear without a trace Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Very strange: Errors dissapear without a trace

    I have a very strange problem with Errors that sould be shown on the frontend. I registered a CustomDateEditor on a SimpleFormController, now when I enter into my date form element something that does not qualify as a date, like "aaa" - the spring:hasBindErrors tag is supposed to show that the conversion went wrong. See below:

    Code:
    	<spring&#58;hasBindErrors name="command">
            <c&#58;forEach var="errMsgObj" items="$&#123;errors.allErrors&#125;">
               <li>
               	  <div style="color&#58;red">
                  	<spring&#58;message code="$&#123;errMsgObj.code&#125;" text="$&#123;errMsgObj.defaultMessage&#125;"/>
                  </div>
               </li>
            </c&#58;forEach>
       </spring&#58;hasBindErrors>
    Whats strange, is that the error is detected, the formView is shown, but no errors are listed.

    I can write my own Validator, and log the Errors that are passed to the validate() method, but it seems like they get lost on their way to the fronted. Has anybody got an idea whats wrong?

  • #2
    Not sure...this worked for me (cut and paste) on a SimpleFormController with a CustomerDateEditor with invalid dates.

    Comment

    Working...
    X