-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I've been prototyping my first attempt at using the MVVM form level validations by folowing the small-talk demos. However, when I add a form validator I get the following warning and no message displayed...
13-Jun-2012 10:42:23 org.zkoss.bind.validator.AbstractValidator addInvalidMessages:84 WARNING: ValidationMessages not found on binder org.zkoss.bind.AnnotateBinder@2c9b04ac, please init it
<groupbox form="@id('r') @load(vm.selectedResource) @validator(vm.formLevelValidator) @save(vm.selectedResource, before='save') " visible="@load(not empty vm.selectedResource)" validationMessages="@id('vmsgs')">
Found the problems...
The validationMessages="@id('vmsgs')" tag has to be set at the same level as the binding - in my case this not at the same level as the form;
and secondly, the label binding used to display the error was not setting the key inside single quotations.
I
Thanks - had the same problem.
Asked: 2012-06-13 09:54:04 +0800
Seen: 395 times
Last updated: Jun 22 '12