Hi Andre, Currently Cocoon 2.2 uses dojo-0.4.3. I guess that's where your problem comes from. There have been some discussion on how to upgrade cocoon forms to dojo 1.0, but this has not been realized yet. As far as I can see right now the dojo is encapsulated in the cocoon-ajax-impl jar.
Sorry I could not have been of more help. Regards, Jeroen Reijn -----Original Message----- From: Andre Juffer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 9:53 PM To: Cocoon Users Subject: dojo and ajax: missing resource Hi all, As cocoon offers support for Dojo, I have been trying to use some of the Dojo widgets (see http://dojotoolkit.org/book/dojo-book-1-0). I am encountering an exception of the form: org.apache.excalibur.source.SourceNotFoundException: resource://org/apache/cocoon/dojo/resources/__package__.js This is employed by a sitemap.xmap that is apparently generated on the fly (when running 'mvn jetty:run') and placed in ../target/work/blocks/cocoon-ajax-impl/sitemap.xmap. This sitemap has a pipeline for the resource __package__.js that is requested for when the browser loads HTML containing <script src="/cocoon-ajax-impl/resource/external/dojo/dojo.js" type="text/javascript"></script> In the my own sitemap, I have somewhere <map:match pattern="**dojo.js"> <map:read mime-type="text/javascript" src="servlet:ajax:/resource/external/dojo/dojo.js" /> </map:match> If I load dojo.js directly from "http://o.aolcdn.com/dojo/1.0.0/dojo/dojo.xd.js", the form works exactly right and there are no further problems. It is probably better you rely on the cocoon ajax/dojo framework, as I was trying. Can somebody point out whether or not I need another jar (extra dependency in pom.xml). I was looking for something like cocoon-dojo-impl but could not immediately find it on http://repo1.maven.org/maven2/org/apache/cocoon/ Thanks, Andre --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
