[ 
https://issues.apache.org/struts/browse/WW-2484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43383#action_43383
 ] 

Mike Calmus commented on WW-2484:
---------------------------------

This issue appears to occur when more than one datepicker on a page use the 
templateCssPath attribute. To make things work (more or less) I have to change:

  <s:datetimepicker name="startDate" id="startDate" 
templateCssPath="stylesheets/customDatePicker.css" displayFormat="MM/dd/yyyy" 
/> 
  <s:datetimepicker name="endDate" id="endDate" 
templateCssPath="stylesheets/customDatePicker.css" displayFormat="MM/dd/yyyy" 
/> 

to

  <s:datetimepicker name="startDate" id="startDate" displayFormat="MM/dd/yyyy" 
/> 
  <s:datetimepicker name="endDate" id="endDate" 
templateCssPath="stylesheets/customDatePicker.css" displayFormat="MM/dd/yyyy" 
/> 


> Styles from templateCssPath ignored
> -----------------------------------
>
>                 Key: WW-2484
>                 URL: https://issues.apache.org/struts/browse/WW-2484
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11
>            Reporter: Mike Calmus
>
> I copied the normal DatePicker.css to a local directory and made some 
> changes. When I use the following tag:
>   <s:datetimepicker name="startDate" id="startDate" 
> templateCssPath="/stylesheets/customDatePicker.css" 
> displayFormat="MM/dd/yyyy" />
> The styles specified in the modified file, though are not used. Running the 
> popup through FireBug (https://addons.mozilla.org/en-US/firefox/addon/1843) 
> shows that the modified styles are all overriden by the default styles. In 
> effect, those specified by the templateCssPath are ignored.
> I assume this is some sort of Dojo issue. Perhaps upgrading to dojo 0.9+ 
> would fix it?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to