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

Matt Benson mbenson at apache.org
Thu Jan 17 11:59:36 EST 2013


On Thu, Jan 17, 2013 at 10:33 AM, Hardy Ferentschik <hardy at hibernate.org>wrote:

> 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.
>
>
I think I like this direction.

Matt


> --Hardy
>
>
>
>
> _______________________________________________
> beanvalidation-dev mailing list
> beanvalidation-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20130117/10f6443c/attachment-0001.html 


More information about the beanvalidation-dev mailing list