Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 532717F30 for ; Mon, 10 Oct 2011 08:11:43 +0000 (UTC) Received: (qmail 90533 invoked by uid 500); 10 Oct 2011 08:11:42 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 90341 invoked by uid 500); 10 Oct 2011 08:11:39 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 90288 invoked by uid 99); 10 Oct 2011 08:11:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 08:11:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [130.231.240.1] (HELO oulu.fi) (130.231.240.1) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2011 08:11:31 +0000 Received: from cc.oulu.fi (sun3.oulu.fi [130.231.240.13]) by oulu.fi (8.13.8/8.13.8) with ESMTP id p9A8BBqW002519 for ; Mon, 10 Oct 2011 11:11:11 +0300 Received: from claudius.oulu.fi (claudius.oulu.fi [130.231.106.107]) by cc.oulu.fi (8.13.7/8.13.7) with ESMTP id p9A8BAql004844 for ; Mon, 10 Oct 2011 11:11:11 +0300 (EEST) Message-ID: <4E92A89E.7050001@oulu.fi> Date: Mon, 10 Oct 2011 11:11:10 +0300 From: Andre Juffer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110928 Mandriva/3.1.15-0.1mdv2010.2 (2010.2) Thunderbird/3.1.15 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: cocoon 3: Javascript in jars References: <4E7076D2.1050605@cc.oulu.fi> <4E708734.5080504@oulu.fi> <4E7096ED.3010704@oulu.fi> <4E709A4D.1010204@apache.org> <4E709DEF.8010203@oulu.fi> <4E902DBE.3050701@apache.org> In-Reply-To: <4E902DBE.3050701@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 08/10/11 14:02, Francesco Chicchiricc� wrote: >>> I did this in another (Cocoon3-based) project: It should be enough >>> to add a class like [1], then add a bean like as >>> >>> >>> >> class="org.onehippo.forge.hct.cocoon.internal.ClasspathURLStreamHandlerFactory"/> >>> >>> in one of spring's XMLs. >> >> Yes, this looks promising. So, this would mean that the following >> would work? >> >> >> >> >> >> I will try this (later today). > > > Hei, I am curious: did this work at the end? Actually, looking through the code of cocoon 3, it was not clear to me how this would work. But I will have another look to see how this work for other readers. In the mean time, I have looked for an alternative solution and found one from the Dojo website at http://dojotoolkit.org/documentation/tutorials/1.6/cdn/ So, dojo itself is stored elsewhere (some CDN) and I allow the application to load Javascript specific to the application by defining a module path, so that I can do for instance dojo.require("my.appl.main") and a main.js is loaded from the specified module path at, say, "dojo/js/my/appl.main.js" where "dojo/js" is the module path relative to the context. So, for now my problem is solved. > > Regads. > >> Thanks, >> Andr� >> >> >>> >>> Regards. >>> >>> [1] >>> https://forge.onehippo.org/svn/hct/trunk/core/src/main/java/org/onehippo/forge/hct/cocoon/internal/ClasspathURLStreamHandlerFactory.java > -- > Francesco Chicchiricc� > > Apache Cocoon Committer and PMC Member > http://people.apache.org/~ilgrosso/ -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juffer@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StrucBioCat | WWW: www.strucbiocat.oulu.fi Triacle Biocomputing | WWW: www.triacle-bc.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org