Grégory Joseph ha scritto:
If you have getUrl_one() and setUrl_one() in your module's class, it
will be fed with the values from the config node.
To get the instance of your module's class:
ModuleRegistry.Factory.getInstance().getModuleInstance("myModule")
hth,
Mmm...
So, I've edited NavigationModule.java (referenced into module descriptor
NavigationModule.xml) in this way:
*************************************
private String test;
public String getTest(){
return this.test;
}
*************************************
Then, in a tag library implementation class:
*************************************
System.out.println("--before");
NavigationModule navigationModule = (NavigationModule)
ModuleRegistry.Factory.getInstance().getModuleInstance("myModule");
System.out.println("myConfig is : " +
navigationModule.getTest());
System.out.println("after--");
*************************************
And in configuration, under modules/myModule/config I've added this node:
test = "is working"
But my answer, in console, is:
--before
myConfig is : null
after--
What miss?
Thanks again...
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------