For converting String values in JSF bean validation, which converter will be used?
Like for numeric values we use <f:convertNumber>
and for date we use <f:convertDataTime>
.
My code snipest are as follows:
JSF page:
<h:inputText id="Name" label="Name" value="#{employee.eName}"/>
<h:message for="Name" styleClass="errorMessages"/>
Bean class:
public class Employee implements Serializable{
@NotNull @Size(min = 3, max = 30)
String eName;
}