cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: 2.2 using cocoon-ajax-impl
Date Tue, 22 May 2007 17:23:37 GMT
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/

Mime
View raw message