Results 1 to 2 of 2

Thread: Very strange: Errors dissapear without a trace

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

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

Similar Threads

  1. Validation and displaying errors in jsp
    By jkookie in forum Web
    Replies: 3
    Last Post: Jun 5th, 2008, 03:28 PM
  2. Replies: 17
    Last Post: Jan 2nd, 2007, 01:43 PM
  3. Errors object
    By mia in forum Web
    Replies: 1
    Last Post: May 27th, 2005, 05:09 AM
  4. Replies: 1
    Last Post: Apr 28th, 2005, 01:54 PM
  5. Replies: 1
    Last Post: Dec 3rd, 2004, 02:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •