works now :) I want to wiki this up, how can i add a new page to the wiki?
many thanks Reinhard! Jorg
Reinhard Poetz wrote:
From: Jorg Heymans
InputModule d = (InputModule)manager.lookup( "org.apache.cocoon.components.modules.input.InputModuleSelector");
-> this one bums out with a null exception object
try this:
try { this.selector = (ComponentSelector)this.manager.lookup(InputModule.ROLE + "Selector"); } catch(ComponentException ce) { throw new PatternException("Cannot access input modules selector", ce); }
// Get the module InputModule module; try { module = (InputModule)this.selector.select(moduleName); } catch(ComponentException ce) { throw new PatternException("Cannot get InputModule named '" + moduleName + "' in expression '" + this.originalExpr + "'", ce); }
(for further details have a look at the class org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes
olver)
HTH
-- 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]
