Interface HasHiddenValidationErrorsHandlers
- All Superinterfaces:
HasHandlers
- All Known Implementing Classes:
DynamicForm
,PropertySheet
,SearchForm
,ValuesManager
-
Method Summary
Modifier and TypeMethodDescriptionMethod to display validation error messages for a valuesManager when there is not currently visible form item displaying the errors.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addHiddenValidationErrorsHandler
Method to display validation error messages for a valuesManager when there is not currently visible form item displaying the errors. This will be called when validation fails for
- a field in a hidden or undrawn member form
- a hidden field in a visible member form
- for databound ValuesManagers, a datasource field with specified validators, but not associated item in any member.
Implement this to provide custom validation error handling for these fields.
By default hidden validation errors will be logged as warnings in the developerConsole. CallHiddenValidationErrorsEvent.cancel()
from withinHiddenValidationErrorsHandler.onHiddenValidationErrors(com.smartgwt.client.widgets.form.events.HiddenValidationErrorsEvent)
from this method to suppress that behavior.- Parameters:
handler
- the hiddenValidationErrors handler- Returns:
HandlerRegistration
used to remove this handler
-