This is what I did...
- I downloaded the dojo-widget.tar.gz from http://dojotoolkit.org/.
- Added the dojo.js to the src/main/webapp/scripts folder
- Added the src directory to src/main/webapp/src folder
- Then I added the dojo.js script link to the page I'm using it...
(Without removing anything)
David M.
Aridany Ramirez wrote:
Hello again:
I made a new project like you said, using 2.0-m5-SNAPSHOT and removed
all scriptaculous, prototype includes and code. Also adjusted the path
for StaticFilter to /struts/dojo, but still I have errors with dojo.
Any other ideas???
Thanks!
Ari Ramirez.
2007/4/12, Matt Raible <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>>:
You could try removing scriptaculous and see if that helps. To do
this, run "mvn package" and copy default.jsp from
target/yourproject/decorators into your project.
If that doesn't work, try creating a project using 2.0-m5-SNAPSHOT and
adjust the path for StaticFilter to point to Dojos path. However, I
don't know if this will work b/c StaticFilter currently does not do
anything to try and serve up Dojo files from struts.jar .
Matt
On 4/12/07, Aridany Ramirez <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
> Hello:
>
> I follow the QuickStart Guide and created a new project (Struts
2 Basic).
>
> I modified userForm.jsp to insert a s:datetimepicker so I included:
>
> <s:head theme="ajax"/> in <head> section
>
> <s:datetimepicker id="date" label=" label.date" format="dd/MM/yyyy">
>
> But the widget is not working. Firebug is showing errors with
dojo (dojo is
> not defined, dojoRequire.js , Line 1). I don´t know if dojo and
> scriptaculous doesn´t fit well together or is related to other
issue.
>
> Any ideas?
>
>
> Thanks!
> Ari Ramirez.
>
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]