ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Crum <adrian.c...@sandglass-software.com>
Subject renderDateTimeField Freemarker macro ignores framework date-time format settings
Date Tue, 01 Nov 2011 20:23:37 GMT
The renderDateTimeField macro in htmlFormMacroLibrary.ftl ignores the 
framework date-time format settings and formats date-time fields using 
jQuery instead. Two problems with that:

1. Even when shortDateInput = true, the date and time are displayed when 
the value is a Timestamp.
2. If the value is anything other than a Timestamp, (java.util.Date or 
java.sql.Date) then the field content is localized, and any attempt to 
pass the field content to a service fails - because there is no way to 
convert the string back to the proper object type.

Why was this change made?

-Adrian


Mime
View raw message