@DomEvent(value="validated") public static class HasClientValidation.ClientValidatedEvent extends ComponentEvent<Component>
source| Constructor and Description |
|---|
ClientValidatedEvent(Component source,
boolean fromClient)
Creates a new event using the given source.
|
ClientValidatedEvent(Component source,
boolean fromClient,
boolean valid)
Creates a new event using the given source.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
isValid()
Returns true if the client-side validation succeeded and false
otherwise.
|
getSource, isFromClient, unregisterListenertoStringpublic ClientValidatedEvent(Component source, boolean fromClient, @EventData(value="event.detail.valid") boolean valid)
source - the source component.fromClient - true if the event originated from the client
side, false otherwisevalid - whether the client-side validation succeeded.public ClientValidatedEvent(Component source, boolean fromClient)
source - the source component.fromClient - true if the event originated from the client
side, false otherwisepublic Boolean isValid()
Note, this method will always return true if the event originated
from the server-side i.e. ComponentEvent.isFromClient() returns false.
Copyright © 2025. All rights reserved.