Hi Jeremy,
Thanks for you reply. You are right. However, I think it is simpler to
redeploy a new jar in the WEB-INF/lib directory.
Would you explain me why the jar is inside the cocoon-ajax.jar? (Don't
get the question wrong. I want to know the reason). :)
Best Regards,
Antonio Gallardo.
Jeremy Quinn escribió:
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}"/>
</map:when>
<!-- For Cocoon development, read directly from source
directories
<map:when
test="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}">
<map:read
src="../../src/blocks/{1}/resources/org/apache/cocoon/{1}/resources/{2}"/>
</map:when>
-->
<map:otherwise>
<map:read
src="resource://org/apache/cocoon/{1}/resources/{2}"/>
</map:otherwise>
</map:select>
</map:match>
So if you add :
cocoon/build/webapp/resources/dojo/**
cocoon/build/webapp/resources/forms/**
cocoon/build/webapp/resources/ajax/**
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 dojo.zip) 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.