cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Heiden" <patrickhei...@gmx.de>
Subject getComponent vs. context.getAttribute
Date Tue, 11 Mar 2008 22:20:32 GMT
Hello together!

Is there any notable difference in asking for Spring-beans inside flow-scripts wheter using

cocoon.getComponent("myBean"); // via avalon-bridge!?

or

var appCtx = cocoon.context.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
appCtx.getBean("myBean");

??

Thanks
Patrick
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message