@Component(value="ui_NotBlankValidator") @Scope(value="prototype") public class NotBlankValidator extends AbstractValidator<java.lang.String>
In order to provide your own implementation globally, create a subclass and register it in configuration class, for example:
@Bean("ui_NotBlankValidator") @Scope(BeanDefinition.SCOPE_PROTOTYPE) @Primary protected NotBlankValidator notBlankValidator() { return new CustomNotBlankValidator(); }
currentAuthentication, datatypeRegistry, message, messages, substitutor
Constructor and Description |
---|
NotBlankValidator() |
NotBlankValidator(java.lang.String message)
Constructor for custom error message.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(java.lang.String value) |
protected void |
setMessages(io.jmix.core.Messages messages) |
formatValue, getMessage, getTemplateErrorMessage, setMessage
public NotBlankValidator()
public NotBlankValidator(java.lang.String message)
message
- error message@Autowired protected void setMessages(io.jmix.core.Messages messages)
public void accept(java.lang.String value) throws ValidationException
ValidationException