I have the following code:
<h:inputText id="it-date" value="#{myBean.myDate}">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:inputText>
<h:message for="it-date" />
When I enter the date 02/30/2012
, I get the following message:
j_idt5:it-date: '02/30/2012' could not be understood as a date. Example: 10/01/2012
Is it possible to remove j_idt5:it-date:
including the colon and to keep the default message from Java?
I already tried to use the attribute label
, but with that the colon remained. I don't want to use a custom message, because the default messages are already internationalized.