[bv-dev] BVAL-192 and BVAL-223

Hardy Ferentschik hardy at hibernate.org
Thu Jan 17 11:33:31 EST 2013


To comment on one of my own questions :-) :

On 17 Jan 2013, at 4:48 PM, Hardy Ferentschik <hardy at 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.

--Hardy






More information about the beanvalidation-dev mailing list