[ 
https://issues.apache.org/jira/browse/TOMAHAWK-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674266#action_12674266
 ] 

Leonardo Uribe commented on TOMAHAWK-1348:
------------------------------------------

The problem comes from TOMAHAWK-1014 HTMLInputDate ignores custom converters. 
With the latest fix now it is working correctly (converterMessage in latest 
code 1.1.9-SNAPSHOT). There are two cases:

1. An invalid date (non convertible) found. Use converterMessage if set.
2. A valid date (convertible) but not valid by the validator. Use 
validatorMessage if set.

I'll close this issue as invalid, since validatorMessage is working on 1.1.8, 
but note that converterMessage is not. 

> inputDate should display the text provided on validatorMessage attribute
> ------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-1348
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1348
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: Date
>    Affects Versions: 1.1.7
>         Environment: Java 1.5, Tomcat 6, JSF RI 1.2_08
>            Reporter: Rogério Pereira Araújo
>            Priority: Minor
>
> I'm trying to customized the message displayed to the user by specifying a 
> custom validator message like we have in the example below:
> <t:inputDate id="txtBirthDate"
>       value="#{bean.birthDate}" 
>       validatorMessage="Invalid birth date supplied!"/>
> But when I provide a invalid date and submit the data, the following text is 
> displayed by messages component:
> * org.apache.myfaces.Date.INVALID
> Is this the correct behavior? What I need to do to display the text supplied 
> in validatorMessage attribute? Should I attach a date validator to input date 
> to display my custom validator message?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to