cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szef...@op.pl
Subject InputModule and creating Configuration object for it
Date Thu, 22 Jul 2004 17:43:40 GMT
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


Mime
View raw message