org.zkoss.bind.appValidators

From Documentation
Revision as of 06:43, 1 December 2014 by Vincent (talk | contribs) (Created page with "{{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.bind.appValidators Default: ''none'' [since 6.0.1] {{ZK EE}} Register application level validators and onl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


org.zkoss.bind.appValidators


Property:

org.zkoss.bind.appValidators
Default: none
[since 6.0.1]
  • Available for ZK:
  • http://www.zkoss.org/product/zkhttp://www.zkoss.org/whyzk/zkeeVersion ee.png

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

Last Update : 2014/12/01


Version Date Content
6.0.1 May, 2012 Introduced



Last Update : 2014/12/01

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.