Adds the proposing functionality to a
com.itmill.toolkit.data.Validator
. A
Suggestive
validator can propose a valid value for the
object it is attached to validate. This way the
com.itmill.toolkit.data.Validatable
object may avoid situations where it contains a value that could
lead to a error.
Parameters
proposedValue
Originally proposed value that could be invalid.
Suggested value that's not invalid against this validator
Suggest another value that can be used instead of
proposedValue
if it is invalid. If it is valid
in the opinion of this validator, however, it is returned as is.