cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject Re: Dojo jar into cocoon block?
Date Wed, 17 Jan 2007 10:29:48 GMT
Hi Antonio

There should already be a simple way to override the built-in dojo  
and all the resources used by CForms as well.

In the root sitemap, there is a section to load these resources :

     <map:match pattern="_cocoon/resources/*/**">
       <map:select type="resource-exists">
         <map:when test="resources/{1}/{2}">
           <map:read src="resources/{1}/{2}"/>
         <!-- For Cocoon development, read directly from source  
           <map:when test="../../src/blocks/{1}/resources/org/apache/ 
               <map:read src="../../src/blocks/{1}/resources/org/ 
           <map:read src="resource://org/apache/cocoon/{1}/resources/ 

So if you add :


etc. these will override the content of the built-in jars.

Is this what you are after ?

regards Jeremy

On 16 Jan 2007, at 17:21, Antonio Gallardo wrote:

> hi:
> I just noted the dojo.jar is now into the cocoon-ajax.jar.
> Should not it better if the dojo.jar (or is a different  
> file to make it easy to update in case the user needs to update  
> dojo without a cocoon rebuild?
> WDYT? :)
> Best Regards,
> Antonio Gallardo.

View raw message