You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rudy De Busscher (JIRA)" <de...@myfaces.apache.org> on 2011/01/27 13:39:45 UTC

[jira] Commented: (EXTVAL-124) The message for 'source' target is not correct in the case of DateIsType.same

    [ https://issues.apache.org/jira/browse/EXTVAL-124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987531#action_12987531 ] 

Rudy De Busscher commented on EXTVAL-124:
-----------------------------------------

A workaround is possible by using the 'validationErrorMsgKey' attribute to specify the error text to use.

@DateIs(type = DateIsType.same, valueOf = "endDate", validationErrorMsgTarget = MessageTarget.source, validationErrorMsgKey = 'Date has to be equally to {0}') 

> The message for 'source' target is not correct in the case of DateIsType.same 
> ------------------------------------------------------------------------------
>
>                 Key: EXTVAL-124
>                 URL: https://issues.apache.org/jira/browse/EXTVAL-124
>             Project: MyFaces Extensions Validator
>          Issue Type: Bug
>          Components: Property Validation
>    Affects Versions: 1.2.4, 2.0.4
>            Reporter: Rudy De Busscher
>            Priority: Minor
>
> Using a validation annotation like this:
> @DateIs(type = DateIsType.same, valueOf = "endDate", validationErrorMsgTarget = MessageTarget.source)
> results in an error message that contains the text 'before'
> Date has to be before {0}

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