-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have requirement need to completed, I need validate an input field of record on UI with the previous record.
I had created the property(object) in view model which get the previous record, I also read the sample code from the document, it seem validator is focus on UI element validation, I wonder the validator could work with my requirement, does any body know about it?
Hi, You can implement your own validator by extending AbstractValidator, and access the previous record directly in your view model or by passing an argument to the validator.
See more detail at sections: "Implement a Validator" and "Pass and Retrieve Parameters" in the below link. http://books.zkoss.org/zk-mvvm-book/8.0/data_binding/validator.html
Asked: 2015-08-17 03:19:10 +0800
Seen: 18 times
Last updated: Aug 19 '15
ZK + Hibernate validation using JSR
howto change Datebox format error message
Session Timeout on Upload Button [closed]
ZK MVVM Validation Focus on First Error
how to clear validation messages
Create Crud of a User that has a collection of books
could binder.sendCommand return a result of Validation?
textbox constraint emailadress upgrade to disallow mycomp.com [closed]