Marc Portier pisze:
Hi there,
I have a block that is dependant on cocoon-ajax-impl and wants to use
the JSON script in there:
before http://svn.apache.org/viewvc?view=rev&revision=534148
the script was loaded via
cocoon.load("resource://org/apache/cocoon/ajax/system/System.JSON.js");
today it seems we should be using:
cocoon.load("resource://COB-INF/system/System.JSON.js");
which looks a bit odd, no?
The second one should not work and even it does it's not reliable way to access
resources of other blocks.
am I missing some 2.2. feature to read in block-contexts? or
wouldn't we rather provide some servlet:ajax:resource/internal/**
into these things?
Yes. resource/internal/** is a way to go.
--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/