From issues-return-14233-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Thu Nov 12 06:39:40 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 66231 invoked from network); 12 Nov 2009 06:39:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Nov 2009 06:39:40 -0000 Received: (qmail 60456 invoked by uid 500); 12 Nov 2009 06:39:39 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 60391 invoked by uid 500); 12 Nov 2009 06:39:39 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 60381 invoked by uid 99); 12 Nov 2009 06:39:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 06:39:38 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Nov 2009 06:39:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 50645234C4B2 for ; Wed, 11 Nov 2009 22:39:15 -0800 (PST) Message-ID: <1524480633.1258007955327.JavaMail.jira@brutus> Date: Thu, 12 Nov 2009 06:39:15 +0000 (UTC) From: "arkrangarao@yahoo.com (JIRA)" To: issues@struts.apache.org Subject: [jira] Commented: (WW-2001) datetimepicker tag doesn't work because dojo baseRelativePath is not properly defined in head.ftl template In-Reply-To: <7121019.1182246807596.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 and also written the taglib directive (struts-dojo-tags) in the JSP. There are two cases - 1) the page(test.jsp) just has the -> 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.