org.zkoss.bind.appValidators"
From Documentation
(Created page with "{{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.bind.appValidators Default: ''none'' [since 6.0.1] {{ZK EE}} Register application level validators and onl...") |
Robertwenzel (talk | contribs) m |
||
Line 3: | Line 3: | ||
'''Property:''' | '''Property:''' | ||
org.zkoss.bind.appValidators | org.zkoss.bind.appValidators | ||
+ | |||
+ | {{GlobalLibraryProperty}} | ||
Default: ''none'' | Default: ''none'' |
Revision as of 11:24, 7 July 2016
Property:
org.zkoss.bind.appValidators
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: none [since 6.0.1]
- Available for ZK:
Register application level validators and only have one instance shared between all binders.
Sample usage: add the following settings in zk.xml:
<library-property>
<name>org.zkoss.bind.appValidators</name>
<value>foo=my.FooValidator,bar=my.BarValidator</value>
</library-property>
Then use them by converter name.
<textbox value="@load(vm.name) @validator('foo')"/>
<textbox value="@load(vm.value) @validator('bar')"/>
Version History
Version | Date | Content |
---|---|---|
6.0.1 | May, 2012 | Introduced |