struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "arkrangarao@yahoo.com (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2001) datetimepicker tag doesn't work because dojo baseRelativePath is not properly defined in head.ftl template
Date Thu, 12 Nov 2009 06:39:15 GMT

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

arkrangarao@yahoo.com commented on WW-2001:
-------------------------------------------

Hi,

I am trying to use sx:datetimepicker in my JSP. Struts version used is 2.1.8

I have included <sx:head/> and also written the taglib directive (struts-dojo-tags)
in the JSP. 

There are two cases - 
1) the page(test.jsp) just has the <s:datetimepicker> -> working fine when the request
directly comes to the JSP - like http://localhost:8081/test.jsp

2) there is an action which is returning the test.jsp page. I am calling that action http://localhost:8081/test.do
- now the date picker is not getting displayed. 

Can you please let me know if there is any issue with the datetimepicker regadring this issue?
If yes, please let me know what to do to resolve this issue



> datetimepicker tag doesn't work because dojo baseRelativePath is not properly defined
in head.ftl template
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2001
>                 URL: https://issues.apache.org/struts/browse/WW-2001
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.8
>            Reporter: zhouyanming
>            Assignee: James Holmes
>             Fix For: 2.0.10
>
>
> dojo.require("dojo.widget.DatePicker") will request  '/struts/dojosrc/widget/DatePicker.js'
> so I changed '/struts/dojo' to '/struts/dojo/' in template/simple/head.ftl and it works
fine. I suggest add this to source repository also.

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


Mime
View raw message