[hibernate-issues] [Hibernate-JIRA] Commented: (HV-403) Create a ValueMessageInterpolator based on java.text.Format instead of the scripting engine
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Tue Dec 14 10:59:13 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HV-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=39364#action_39364 ]
Hardy Ferentschik commented on HV-403:
--------------------------------------
Even better might be to use {{java.util.Formatter}}
> 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
> 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