Hello,
I am having trouble with Date input controls. In my report I have created two parameters with the type java.util.Date. I have created two matching input controls with the type Date also, but when I run the report on the server I get the error "Specify a valid value for type Date." after selecting a date from the calendar date picker. What happens is the format YYYY-MM-DD is correct for java.util.Date(), but when a date is selected it changes to MM/DD/YYYY which is not recongized as Date I suppose. I have tried changing the jasperserver_config.properties to match the correct formating. I have also tried the workaround specified in http://community.jaspersoft.com/wiki/calendar-picker-stuck-mmddyyyy-v47#Example:. Regards, Ethan
Here is a screen shot -------------------------->
- Log in or register to post comments
1 Answer:
I'm pretty sure is a Locale issue. That was a bug in 4.7.0 I think is fixed in 4.7.1
If you already applied the workaround from: http://community.jaspersoft.com/wiki/calendar-picker-stuck-mmddyyyy-v47
Edit the applicationContext-security.xml (inside the WEB_INF folder) and around line 140 you will see the Locale definitions, change the English one (the first) to <value type="java.util.Locale">en_US</value>
(see more infor on the available Locales here http://www.scribd.com/doc/47522603/113/Specifying-Additional-Locales)