-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, how could I clean validation messages manually? I have something like:
<div viewModel="@id('vm') @init('ViewModel')" validationMessages="@id('vmsgs')">
</div>
And I'd like to clean all validation messages by clicking a button. Is it possible?
Without having tested it, my first idea would be to call ValidationMessages.clearAllMessages() ?
e.g. from a button with a command binding passing in the validation messages object.
<button onClick="@command('clearErrors', vmsgs=vmsgs)" label="clear errors"/>
@Command
public void clearErrors(@BindingParam("vmsgs") ValidationMessages vmsgs) {
vmsgs.clearAllMessages();
}
Did you already try that, were there any problems?
Asked: 2018-12-11 18:59:48 +0800
Seen: 13 times
Last updated: Feb 14 '19
zk mvvm > what's the best component to make LOV (list of value) of a master data [closed]
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]