On Thu, Jan 17, 2013 at 10:33 AM, Hardy Ferentschik <hardy@hibernate.org> wrote:
To comment on one of my own questions :-) :

On 17 Jan 2013, at 4:48 PM, Hardy Ferentschik <hardy@hibernate.org> wrote:

> * Using the ${expression} syntax causes a backward compatibility issue with BV 1.0 where '$' was used as literal, e.g. ${amount} would be $10 in BV 1.0
>  whereas now it would be just 10. Maybe '#' would be a better marker for EL expressions or to be 100% correct a configuration flag would be needed.

One way around this would be to give potential BV 1.0 style message parameter interpolation precedence over EL message expressions. In the case of
'${amount}' first an attempt must be made to interpolate '{amount}', before interpolating '${amount}'  as an EL expression. With this precedence rule ${amount}
would become e.g. $10 before EL evaluation would kick in.


I think I like this direction.

Matt
 
--Hardy




_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev