0

Adding form level validation - WARNING: ValidationMessages not found on binder org.zkoss.bin

asked 2012-06-13 09:54:04 +0800

davout gravatar image davout
1435 3 18

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



The related ZUL file extract is shown below:
<groupbox form="@id('r') @load(vm.selectedResource) @validator(vm.formLevelValidator) @save(vm.selectedResource, before='save') "
							visible="@load(not empty vm.selectedResource)" validationMessages="@id('vmsgs')">



Any ideas?

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-06-13 10:45:59 +0800

davout gravatar image davout
1435 3 18

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

link publish delete flag offensive edit

answered 2012-06-22 18:04:47 +0800

juergenmw gravatar image juergenmw
79 1

updated 2012-06-22 18:08:29 +0800

Thanks - had the same problem.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-06-13 09:54:04 +0800

Seen: 395 times

Last updated: Jun 22 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More