cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
Subject Re: 2.2 using cocoon-ajax-impl
Date Wed, 23 May 2007 06:32:22 GMT


Grzegorz Kossakowski wrote:
> 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.
> 

just for the record, and sorry for not being clear on this:

this _does_ work
(it is in fact the only way I got it to work)


>> 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.
> 

thx for the confirmation

regards,
-marc=

Mime
View raw message