cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stev...@outerthought.org
Subject [WIKI-UPDATE] FAQs Fri Oct 31 13:00:03 2003
Date Fri, 31 Oct 2003 12:00:03 GMT
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}}.
+ 



Mime
View raw message