Re: [appfuse-user] DOJO problem in struts basic 2m5

2007-07-21 Thread arvinder
Matt, I was trying to make it work with default dojo which comes with struts but was getting dojo not defined error as dojo.js was not being loaded, while all others js files (loaded by s:head ) were. Then I added dojo to my scripts folder as suggested by you below, but surprisingly when I checked

Re: [appfuse-user] DOJO problem in struts basic 2m5

2007-07-21 Thread Matt Raible
There's 3 steps to make Dojo work (sorry I don't have more details): 1. Download and add Dojo to your webapp/scripts folder. 2. Modify decorators/default.jsp to add Dojo to your head, pointing at your installed version of Dojo. 3. Modify web.xml so scripts/dojo is an included path for static file

[appfuse-user] DOJO problem in struts basic 2m5

2007-07-20 Thread arvinder
I am trying a very simple Ajax call in jsp but I cannot get it to work..delaying my friday beer session:) I have in head and following in my jsp body loading content... My ajax action is spitting some static content, but I never get that on this page, but if I type in

Re: [appfuse-user] Dojo Problem

2007-04-26 Thread Matt Raible
Since you guys have spent so much time getting this to work - can you please enter an issue into JIRA so we can make this work out-of-the-box? http://issues.appfuse.org/browse/APF Thanks, Matt On 4/26/07, J. David Mendoza <[EMAIL PROTECTED]> wrote: Thanks Aridany... I finally have it working

Re: [appfuse-user] Dojo Problem

2007-04-26 Thread J. David Mendoza
Thanks Aridany... I finally have it working... I didn't have to extract the static folder in struts.jar, I just had to: - Change the parser in sitemesh.xml to (commented out the 3 lines of HTMLPageParser): class="com.opensymphony.module.sitemesh.parser.FastPageParser"/> - Added struts/doj

Re: [appfuse-user] Dojo Problem

2007-04-26 Thread Aridany Ramirez
No, i´m sorry. I´m still stuck with that problem. 2007/4/26, J. David Mendoza <[EMAIL PROTECTED]>: Aridany, did you ever find it? David M. Matt Raible wrote: > I don't know - according to the following issue (and some googling), > it looksl ike it's in there: > > https://issues.apache.org/str

Re: [appfuse-user] Dojo Problem

2007-04-25 Thread J. David Mendoza
Aridany, did you ever find it? David M. Matt Raible wrote: I don't know - according to the following issue (and some googling), it looksl ike it's in there: https://issues.apache.org/struts/browse/WW-1598 Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: I thought that too, but i c

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Matt Raible
I don't know - according to the following issue (and some googling), it looksl ike it's in there: https://issues.apache.org/struts/browse/WW-1598 Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: I thought that too, but i could not find struts.js in struts2-core.jar. Are some other j

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Aridany Ramirez
I thought that too, but i could not find struts.js in struts2-core.jar. Are some other jar to verify? 2007/4/18, Matt Raible <[EMAIL PROTECTED]>: You might try extracting struts.js from the struts.jar and putting it in your scripts directory. Matt On 4/18/07, Aridany Ramirez <[EMAIL PRO

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Matt Raible
You might try extracting struts.js from the struts.jar and putting it in your scripts directory. Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: Hi!, now i´m testing s:autocompleter, but dojo is not finding the file "scripts/struts.js". Any ideas?? 2007/4/17, Aridany Ramirez < [EMA

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Aridany Ramirez
Hi!, now i´m testing s:autocompleter, but dojo is not finding the file "scripts/struts.js". Any ideas?? 2007/4/17, Aridany Ramirez <[EMAIL PROTECTED]>: Finally, I have dojo and scriptaculous working together. No changes made in the decorator, if you move above the scripts includes, scriptaculo

Re: [appfuse-user] Dojo Problem

2007-04-17 Thread Aridany Ramirez
Finally, I have dojo and scriptaculous working together. No changes made in the decorator, if you move above the scripts includes, scriptaculous crash. So you need to make the dojo include inside the body after , this works fine with both. Ari Ramirez. 2007/4/17, Nathan Anderson <[EMAIL PROT

Re: [appfuse-user] Dojo Problem

2007-04-17 Thread Nathan Anderson
I'll let you know once I get a combination that actually works ;) Nathan Matt Raible wrote: For those using Dojo - do you generally specify the Dojo includes inthe decorator or in the page itself? The reason I ask is there's somethings we can do to make things easier: 1. In the decorator, add

Re: [appfuse-user] Dojo Problem

2007-04-17 Thread Matt Raible
For those using Dojo - do you generally specify the Dojo includes in the decorator or in the page itself? The reason I ask is there's some things we can do to make things easier: 1. In the decorator, add a comment that says "put dojo first". 2. In the decorator, move above the scripts so any sc

Re: [appfuse-user] Dojo Problem

2007-04-17 Thread Nathan Anderson
Ahh.. that is interesting I'll have to play around with that Nathan Aridany Ramirez wrote: When running dojo.js and scriptaculous.js together, make sure you load dojo.js first. Loading scriptaculous.js first will cause Dojo to fail. http://www.dev411.com/blog/2006/06/13/dojo-and-proto

Re: [appfuse-user] Dojo Problem

2007-04-17 Thread Aridany Ramirez
When running dojo.js and scriptaculous.js together, make sure you load dojo.js first. Loading scriptaculous.js first will cause Dojo to fail. http://www.dev411.com/blog/2006/06/13/dojo-and-prototype-together 2007/4/13, Aridany Ramirez <[EMAIL PROTECTED]>: This is weird, i´m getting the same e

Re: [appfuse-user] Dojo Problem

2007-04-13 Thread Aridany Ramirez
This is weird, i´m getting the same errors in Firefox 2.0, but in IE works fine, don´t know why. 2007/4/12, Nathan Anderson <[EMAIL PROTECTED]>: For some reason I'm not getting this... I added to my page [I'd move it to "header.jsp" or something if I get this working]. StaticFilter is configu

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread Nathan Anderson
For some reason I'm not getting this... I added to my page [I'd move it to "header.jsp" or something if I get this working]. StaticFilter is configured to include "/struts/dojo/*" [was "/scripts/dojo/*" but I changed it after finding that is not where Struts 2 is loading them from]. But ins

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread Matt Raible
You're right, it does include it, but when doing performance tuning, they recommend you copy static resources to your webapp. From http://struts.apache.org/2.x/docs/performance-tuning.html: Copy the static content from the Struts 2 jar when using the Ajax theme (Dojo) or the Calendar tag. Stru

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread Aridany Ramirez
I think struts2-core.jar includes dojo, so it´s unnecessary copy dojo again, only is needed the path where is deployed dojo.js and make the link. But your way works fine. I only had to remove , but nothing else. Thanks! Muchas Gracias Ari Ramirez. 2007/4/12, J. David Mendoza <[EMAIL

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread J. David Mendoza
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 anythin

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread Aridany Ramirez
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

Re: [appfuse-user] Dojo Problem

2007-04-12 Thread Matt Raible
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. Ho

[appfuse-user] Dojo Problem

2007-04-12 Thread Aridany Ramirez
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: in section 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