Hi Bailly,
I'm not 100% sure about this, but I think this was recently broken
inadvertently when development was done using 1.8.x as a development
environment, and something was introduced that was incompatible with
1.6.x. Do you have the capacity to create a ticket for this, develop a
fix, and attach that fix to the ticket? That would be really helpful.
Thanks,
Mike
On 11/07/2011 10:22 AM, Bailly Rurangirwa wrote:
Hi,
an exception is being thrown when trying to calculate history of
indicators
org.springframework.beans.TypeMismatchException
Failed to convert value of type [java.lang.String] to required type
[java.util.Date]; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[java.lang.String] to required type [java.util.Date]: no matching
editors or conversion strategy found
Looking through IndicatorHistoryController, I don't see where we
register a CustomDateEditor to handle the "startDate" and "endDate"
properties from the "Query" class.
Can we change initBinder and include a custom date editor for these
properties?...add something like
SimpleDateFormat dateFormat = Context.getDateFormat();
dateFormat.setLenient(false);
binder.registerCustomEditor(Date.class, new
CustomDateEditor(dateFormat,true, 10));
-Bailly
------------------------------------------------------------------------
Click here to unsubscribe
<mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l>
from OpenMRS Developers' mailing list
_________________________________________
To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-devel-l" in the body (not
the subject) of your e-mail.
[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]