I'm using hibernate validators with JSF. How can i set my conversation error messages. I'am trying such way, but it didn't work:
<h:inputText id="input" value="#{myBean.number}" converterMessage="#{msgs.convertError}">
<f:convertNumber />
<rich:beanValidator />
<rich:ajaxValidator event="onblur"/>
</h:inputText>
Custom validator messages i can set in my bean:
@NotNull
@Min(value = 1, message="{greateThanOne}")
public long getNumber() {
return number;
}
But waht to do with conversation error ?