cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: exposing cocoon 2.2 settings in jxtemplate object model
Date Wed, 23 Aug 2006 08:13:36 GMT
Leszek Gawron schrieb:
> Carsten Ziegeler wrote:
>> Leszek Gawron schrieb:
>>> What do you think about exposing cocoon properties in jxtemplate via:
>>>
>>> ${cocoon.settings.getProperty( 'property-name' )}
>>> or
>>> ${cocoon.settings.propertyName}
>>>
> just to be sure: is this the proper way to obtain current Settings?
> 
> final Settings settings = 
> (Settings)EnvironmentHelper.getCurrentProcessor().getBeanFactory().getBean(Settings.ROLE);
> 
Yes - you should check if getCurrentProcessor() returns null.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message