[hibernate-issues] [Hibernate-JIRA] Commented: (HV-403) Create a ValueMessageInterpolator based on java.text.Format instead of the scripting engine

Gunnar Morling (JIRA) noreply at atlassian.com
Thu Dec 16 16:40:13 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39382#action_39382 ] 

Gunnar Morling commented on HV-403:
-----------------------------------

Pull request applied

> Create a ValueMessageInterpolator based on java.text.Format instead of the scripting engine
> -------------------------------------------------------------------------------------------
>
>                 Key: HV-403
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-403
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 4.1.0.Final
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 4.2.0.Beta1
>
>
> Gunnar's suggestion on this
> {quote}
> Did you also consider an approach based on java.text.Format et al. or String#format()? I could imagine something like ${validatedValue:FORMATTER:FORMAT} where FORMATTER is the name of a java.text.Formatter derivation and FORMAT a format string understood by this formatter, for instance like this:
> org.hibernate.validator.constraints.Past.message=${validatedValue:java.text.SimpleDateFormat:yyyy-MM-dd} is not in the past
> {quote}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list