Package org.zkoss.zml

Class XmlMacroComponent

java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zml.XmlMacroComponent
All Implemented Interfaces:
Serializable, Cloneable, Component, AfterCompose, DynamicPropertied, Macro, Scope, IdSpace, ComponentCtrl

public class XmlMacroComponent extends AbstractComponent implements Macro
The implementation of a macro component for XML output.

By default, compose() will wire members by use of Selectors. In other words, it will wire annotated members the same way as SelectorComposer does.

If you prefer to wire the members based on the name convention as GenericForwardComposer does (i.e., backward compatible with ZK 5), you could specify a library property called org.zkoss.zk.ui.macro.autowire.convention to true in WEB-INF/zk.xml as follows.


	<library-property>
		<name>org.zkoss.zk.ui.macro.autowire.convention</name>
		<value>true</value>
	</library-property>
 

If you prefer not to wire at all (neither by-selector nor by-convention), you could specify a library property called org.zkoss.zk.ui.macro.autowire.disabled to true in WEB-INF/zk.xml as follows..


	<library-property>
		<name>org.zkoss.zk.ui.macro.autowire.disabled</name>
		<value>true</value>
	</library-property>
 
Since:
3.0.0
Author:
tomyeh
See Also: