[hibernate-issues] [Hibernate-JIRA] Created: (HV-403) Create a ValueMessageInterpolator based on java.text.Format instead of the scripting engine
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Sat Dec 4 07:26:13 EST 2010
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