org.zkoss.bind.appConverters"
From Documentation
m |
m |
||
Line 8: | Line 8: | ||
{{ZK EE}} | {{ZK EE}} | ||
− | Register application level converters and only have one instance shard | + | Register application level converters and only have one instance shard between all binders. |
Sample usage: add the following settings in zk.xml: | Sample usage: add the following settings in zk.xml: |
Revision as of 06:43, 1 December 2014
Property:
org.zkoss.bind.appConverters
Default: none [since 6.0.1]
- Available for ZK:
Register application level converters and only have one instance shard between all binders.
Sample usage: add the following settings in zk.xml:
<library-property>
<name>org.zkoss.bind.appConverters</name>
<value>foo=my.FooConverter,bar=my.BarConverter</value>
</library-property>
Then use them by converter name.
<label value="@load(vm.message) @converter('foo')"/>
<label value="@load(vm.message) @converter('bar')"/>
This is useful if the converter is required in many place.
Version History
Version | Date | Content |
---|---|---|
6.0.1 | May, 2012 | Introduced |