BIANEMohamed / struts2-jquery

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

DatePicker in inline mode does not initialize properly #1038

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use the datepicker plugin a lot, so generally I am quite familiar with it.
Now I would like to use it in 'inline' mode, i.e. no entry field, instead the 
calendar is shown permanently.

If I use it like that, German localization is ignored, the calendar display and 
buttons are all in English, except for the title bar, which appears in German, 
as it should (see datetime_initial.png).
The funny thing is that as soon as any control is being clicked (day in month, 
arrow to pick previous/next month etc), the proper localization is restored 
(see datetime_touched.png).

From this behaviour and the fact that a given date (via name property) does not 
display (although visible as value attribute in HTML) it seems to me that this 
is maybe not a "standard bug" but that something blocks the initialization 
process during its execution.

Which struts2 version?
2.3.15.1

Which struts2-jquery plugin version?
3.6.1

The datepicker plugin is used like this:

<sj:head jqueryui="true" locale="de" jquerytheme="weboffice" 
customBasepath="css/themes" />
<sj:datepicker name="datAnzeige" 
             id="calAnzeige"
             displayFormat="dd.mm.yy"
             firstDay="1"
             maxDate="0"
             changeMonth="false"
             changeYear="false"
             showButtonPanel="true"
             inline="true" 
             showAnim="slideDown"
             duration="slow"
             onChangeTopics="onDateSelect"
             cssStyle="width: 0;"
             >
</sj:datepicker>

Could you give me a hint?

Thank you in advance,
Marcus

Original issue reported on code.google.com by m.oeni...@berlin.de on 5 Sep 2013 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
Are there any JavaScript Errors in your Console and if you check your request 
is there a successfully request to your "i18n/jquery.ui.datepicker-de.min.js 
localization file? 

Original comment by johgep on 24 Sep 2013 at 7:44

GoogleCodeExporter commented 9 years ago
Thank you for your answer.

There are no JavaScript errors, but I cannot find a reference to 
i18n/jquery.ui.datepicker-de.min.js anywhere in my HTML code.
Where should I look?

I should, perhaps, point out that I also upgraded the custom theme css files 
via the jQuery Custom Theme Roller.
Also it came to me that of course the header line ("August") is not, in fact, 
in German but also in English ;-)

Best regards, 
Marcus

Original comment by m.oeni...@berlin.de on 25 Sep 2013 at 7:50