i am trying to make multiple validation one one field
@NotBlank(message = "{name.required}")
@Max(value = 25, message = "{long.value}")
public String name;
JSF:
<h:inputText id="name" value="#{person.name}" size="20">
</h:inputText>
<h:message for="name" style="color:red" />
but when i leave the field empty, it shows both error messages.
any ideas how to handle both cases, validate the empty, and maximum length independently.