struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Session A Mwamufiya" <smwam...@andrew.cmu.edu>
Subject Re: Running Dojo on a struts project
Date Mon, 03 Sep 2007 14:53:58 GMT
Thanks for the input Frank.  I found out my mistake, I didn't have the scripts in the header
section, they were in the body, that's why the djConfig wasn't going through properly.

Thanks,
Session


> It *looks* like your using a Dojo profile that doesn't include the pieces
> you need, and Dojo is going off and trying to import them and not finding
> them.  Have a look here:
> 
> http://www.nabble.com/djConfig-params-t2109960.html
> 
> You should set djConfig.baseScriptUri first, see if that resolves your 
> problem, then think about the profile your using.
> 
> Frank
> 
> -- Frank W. Zammetti Founder and Chief Software Architect Omnytex
> Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN:
> fzammetti@hotmail.com Author of "Practical Ajax Projects With Java
> Technology" (2006, Apress, ISBN 1-59059-695-1) and "JavaScript, DOM
> Scripting and Ajax Projects" (2007, Apress, ISBN 1-59059-816-4) Java Web
> Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you
> don't have to reinvent it!
> 
> Session A Mwamufiya wrote:
>> Who has experience using Dojo?  Please help me get it setup.  I added
>> the dojo.js file from the 0.9.0 release (I think it's the latest) to my
>> webcontent folder in an eclipse WAP project, but firebug keeps giving
>> me the same error "djConfig.baseScriptUri has no properties
>> getBaseScriptUri()dojo.js (line 155)"
>> 
>> Please help,
>> 
>> Thanks, Session
>> 
>> 
>>> To follow up on this; I used firebug to try to figure out what was
>>> going on, and this is the error message I get in the console:
>>> 
>>> djConfig.baseScriptUri has no properties getBaseScriptUri()dojo.js
>>> (line 155) loadPath("src/lang/__package__.js", "dojo.lang",
>>> undefined)dojo.js (line 187) loadModule("dojo.lang", undefined,
>>> undefined)dojo.js (line 341) require("dojo.lang.*")dojo.js (line 419)
>>> [Break on this error] if(djConfig.baseScriptUri.length){
>>> 
>>> There seems to be an error in the dojo.js file.  I'm using version
>>> 0.4.3 with ajax.  Can someone send me the link to a working version of
>>> the file?
>>> 
>>> Thanks,
>>> 
>>> Session A. Mwamufiya Carnegie Mellon University MBA | Tepper School
>>> of Business MSE (software eng.) | School of Computer Science T: (412)
>>> 508-5455 | semwamufiya@cmu.edu
>>> 
>>> -----Original Message----- From: Session A Mwamufiya 
>>> [mailto:smwamufi@andrew.cmu.edu] Sent: Monday, September 03, 2007
>>> 9:08 AM To: user@struts.apache.org Subject: Running Dojo on a struts
>>> project
>>> 
>>> Hi,
>>> 
>>> I'm attempting to follow a Dojo tree widget tutorial, 
>>> http://willcode4beer.com/ware.jsp?set=dojoTreeWidget, where Dojo is
>>> used to define a tree.  Unfortunately nothing comes up on the page,
>>> even though the page source shows the tree definition.
>>> 
>>> The tree page is set as the result page for a dummy action (which 
>>> executes), but that's the only connection I have between Dojo and
>>> struts. Is there anything in particular I need to do to get Dojo to
>>> run within a struts app?
>>> 
>>> Thanks, Session
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For
>>> additional commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For
>>> additional commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
>>> 
>> 
>> 
>> --------------------------------------------------------------------- To
>> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
>> commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
> commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message