0 Replies Latest reply on Aug 11, 2009 1:30 PM by Shervin Asgari

    How to inject java.util.Date property from components.xml

    Shervin Asgari Master

      I have a component I want to inject with a java.util.Date value. However I have no way of defining a converter.

      I get this error:

      Caused by: java.lang.IllegalArgumentException: No converter for type: java.util.Date

      This is my component:

      <component name="tidsromFraTilTest" class="mypackage.FromTo">
           <property name="fromDate">12.12.2009</property>
           <property name="toDate">31.12.2009</property>

      I want the java.util.Date fromDate and toDate to be automatically injected with the values of 12.12.2009 and 31.12.2009.