Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10097

Date variables in forms are failing with joda conversion error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2 GA
    • Fix Version/s: 3.2.2
    • Component/s: None
    • Labels:
      None

      Description

      From the form post:

      I upgraded from Spring 3.1.2 to 3.2

      After upgrade, all my date variables in forms are failing with joda conversion error.

      org.springframework.core.convert.ConverterNotFound Exception: No converter found capable of converting from type java.util.Date to type org.joda.time.ReadableInstant
      

      Sample Code:

      Its failing with any of the following options.

      <form:input id="startDt" path="startDt" value="2012-10-12" />
      <form:input id="startDt" path="startDt" value="10-12-2012" />
      <form:input id="startDt" path="startDt" value="10/12/2012" />
      

      Note: startDt is of type java.util.Date

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwebb Phil Webb
                Reporter:
                pwebb Phil Webb
                Last updater:
                Phil Webb
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 15 weeks, 1 day ago