You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/10/31 13:00:03 UTC
[WIKI-UPDATE] FAQs Fri Oct 31 13:00:03 2003
Page: http://wiki.cocoondev.org/Wiki.jsp?page=FAQs , version: 82 on Fri Oct 31 11:20:21 2003 by ReinhardPoetz
- {{
+ {{{
? +
- <input-modules>\\
? --
+ <input-modules>
- .....\\
? --
+ .....
- <component-instance class="org....input.DefaultsMetaModule" name="defaults">\\
? --
+ <component-instance class="org....input.DefaultsMetaModule" name="defaults">
- <values>\\
? --
+ <values>
- <skin>defaultSkin</skin>\\
? --
+ <skin>defaultSkin</skin>
- <base-url>http://localhost:8080/cocoon</base-url>\\
? --
+ <base-url>http://localhost:8080/cocoon</base-url>
- <MYVAR>myvalue</MYVAR>\\
? --
+ <MYVAR>myvalue</MYVAR>
- </values>\\
? --
+ </values>
- </component-instance>\\
? --
+ </component-instance>
- .....\\
? --
+ .....
- }}
+ }}}
? +
- {{
+ {{{
? +
- //modulename below refers to the name defined in cocoon.xconf\\
? --
+ //modulename below refers to the name defined in cocoon.xconf
- String modulename = "defaults";\\
? --
+ String modulename = "defaults";
- ComponentSelector selector =\\ (ComponentSelector)this.manager.lookup(InputModule.ROLE + "Selector");\\
? ^^^^ --
+ ComponentSelector selector = (ComponentSelector)this.manager.lookup(InputModule.ROLE + "Selector");
? ^
- InputModule module = (InputModule)selector.select("defaults");\\
? ^ --- ^^^ --
+ InputModule module = (InputModule)selector.select(modulename);
? ^^ ^^^^^
- Iterator it = module.getAttributeNames(null, objectModel);\\
? --
+ Iterator it = module.getAttributeNames(null, objectModel);
- while (it.hasNext()) {\\
? --
+ while (it.hasNext()) {
- String name = (String)it.next();\\
? --
+ String name = (String)it.next();
- logger.debug(name + "->" + module.getAttribute(name, null, null));\\
? --
+ logger.debug(name + "->" + module.getAttribute(name, null, null));
- }\\
+ }
- }}
+ }}}
? +
+ In Cocoon 2.1 similar code is implemented in {{org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver}}.
+