ok tried the following without success ("could not find component exception") in the setup method of my transformer.

DefaultsMetaModule d =
(DefaultsMetaModule) manager.lookup(InputModule.ROLE);


DefaultsMetaModule d =
(DefaultsMetaModule) manager.lookup("org.apache.cocoon.components.modules.input.DefaultsMetaModule");



InputModule d = (InputModule)manager.lookup( "org.apache.cocoon.components.modules.input.InputModule");


InputModule d = (InputModule)manager.lookup( "org.apache.cocoon.components.modules.input.InputModuleSelector");
-> this one bums out with a null exception object



Then for getting the actual attribute i use logger.debug((String)d.getAttribute("VIDEO-SERVER", null, objectModel));




Reinhard Poetz wrote:


From: Jorg Heymans


Nearly there :)

My transformer is extending AbstractDOMTransformer so i already have access to this manager object.

So would i do:
Component c = manager.lookup( "org.apache.cocoon.components.modules.input.DefaultsMetaModule");


the Component seems like a class without any methods.. so maybe do some casting here?


You have to lookup the InputModuleSelector and NOT a concret
implementation. A selector offers a select method which returns the
object instance you request. There are many examples in the Cocoon
codebase that show you concret selector implementations.

--
Reinhard


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to