gigaZhang / struts2-jquery

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

struts2-jquery under struts2 core 2.1.8.1 framework defined tag:datepick issue #983

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
 while using this modulized component to overwrite calendar 
 as our local/country calender year to add/minus 1911 between
 A.D. and ROC calendar year for browser interpreter(A.D.) 
 and browser user(ROC calendar).

 the following snippet would set back ROC year 99(A.D:2010)
 as ROC year 1999 (add extra 1900).
 even tried set dateFormat as yy/mm/dd or yyyy/mm/dd or yyy/mm/dd,
 they didn't work.
 try to set a judgement if (o.year.length == 2) skip the line below.
 --snippet--
 jquery.struts2.js
 line1209
 $elem.val($.datepicker.formatDate(params.dateFormat, new Date(o.year, o.month, o.day)));
—
 could anyone tell me the formal solution?
 Thanks.

What is the expected output? What do you see instead?
 input into struts2 action date field value as ROC calender 99/12/31(yy/mm/dd)
 after struts2 action process,
 output will be still expected as 99/12/31(yy/mm/dd) under calendar year conversion algorithm.

Which struts2 version?
struts2 core 2.1.8.1

Which struts2-jquery plugin version?
 jquery.struts2.js
 Tested with jQuery 1.4.2 and jQuery UI 1.8
 Copyright (c) 2008 Eric Chijioke (obinna a-t g mail dot c o m)
 Copyright (c) 2010 Johannes Geppert http://www.jgeppert.com

Original issue reported on code.google.com by autumnev...@gmail.com on 23 May 2013 at 9:52

Attachments: