myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rudy De Busscher (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (EXTVAL-124) The message for 'source' target is not correct in the case of DateIsType.same
Date Thu, 27 Jan 2011 12:39:45 GMT

    [ 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.


Mime
View raw message