gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

datepicker - "Invalid field value for field" - locale != us & displayFormat="yy-mm-dd" #1044

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1.Set Locale != us
2.Set displayFormat="yy-mm-dd" or displayFormat="yyyy-mm-dd"
3.

What is the expected output? What do you see instead?
Normal output.

Which struts2 version?
3.4.1

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.
A partial solution is add a param to the url and not use the displayFormat.
http://struts.apache.org/release/2.3.x/docs/how-do-we-change-locales.html

<!-- OK -->
<sj:datepicker name="fechaInicio" label="Inicia" timepicker="true" 
timepickerAmPm="true" labelposition="left" />

<!-- produce "Invalid field value for field" -->
<sj:datepicker name="fechaFin" label="Finaliza" displayFormat="yy-mm-dd" 
timepicker="true" timepickerAmPm="true" labelposition="left"/>

Original issue reported on code.google.com by fritzmat...@gmail.com on 23 Sep 2013 at 9:04