You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by sz...@op.pl on 2004/07/22 19:43:40 UTC
InputModule and creating Configuration object for it
Hello dev,
mhelper is type InputModuleHelper
This code obtains value from InputModule:
Object value = (Object) mhelper.getAttribute(pobjectModel,
cfg,module,name, null);
It work's but I want to pass 'run-time' Configuration to IM:
DefaultConfiguration cfg = new DefaultConfiguration("");
DefaultConfiguration child = new DefaultConfiguration(cfg_key);
child.setValue(cfg_value);
cfg.addChild(child);
When I use this cfg in mhelper code above IM acts as no configuration
was passed. What I'm doing wrong ?
--
Best regards,
szefu18