org.zkoss.zk.ui.macro.autowire.convention"
From Documentation
Robertwenzel (talk | contribs) m |
m ((via JWB)) |
||
Line 7: | Line 7: | ||
Default: <i>false</i> | Default: <i>false</i> | ||
− | + | {{versionSince|6.0.0}} | |
By default, the macro component will wire the UI components to the data member automatically based on CSS selectors, as described in [[ZK Developer's Reference/MVC/Controller/Wire Components|ZK Developer's Reference: Wire Components]]. | By default, the macro component will wire the UI components to the data member automatically based on CSS selectors, as described in [[ZK Developer's Reference/MVC/Controller/Wire Components|ZK Developer's Reference: Wire Components]]. |
Latest revision as of 09:34, 14 March 2022
Property:
org.zkoss.zk.ui.macro.autowire.convention
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: false
Since 6.0.0
By default, the macro component will wire the UI components to the data member automatically based on CSS selectors, as described in ZK Developer's Reference: Wire Components.
If you prefer to wire by the name convention (as GenericAutowireComposer does), you can specify this library to true
as follows. Notice that wiring-by-name-convention is the default approach taken by ZK 5.
<library-property>
<name>org.zkoss.zk.ui.macro.autowire.convention</name>
<value>true</value>
</library-property>
Version History
Version | Date | Content |
---|---|---|
6.0.0 | February 2012 | This library property was introduced. |