@NotBlank doesn't work with JSF Bean validation
i am using javax & hibernate validation annotation in my managed bean, and when i use @NotNull or @NotBlank or @NotEmpty
they doesn't seem to be working, any ideas why, and how to solve it ?
btw, my ValidationMessages.properties file is in src/main/resources folder.
@NotBlank(message = "{name.required}")
public String name;
JSF:
<h:outputLabel>Name:</h:outputLabel>
<h:inputText id="name" value="#{person.name}" size="20">
</h:inputText>
<h:message for="name" style="color:red" />