velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: Map creation outside of #set
Date Mon, 11 Apr 2005 17:46:08 GMT
Hi adam,

> I really need the ability to define a Map outside of a #set. For instance:
> 
>    $form.select('model.property', { 'onChange' : 'doSomethingCool()',
> 'style' : 'color: red' })
> 
> Right now, with what is in cvs (when is 1.5 going to be released,
> btw?), as far as I can tell, I have to do this:
> 
>    #set($attrs = { 'onChange' : 'doSomethingCool()', 'style' : 'color: red' })
>    $form.select('model.property', $attrs)
> 
> Ugh.
> 
> Please tell me I am wrong. I looked at the Velocity source, and I am
> 99.9% certain that I am not. How hard would it be to get this? Maybe
> the real question should be, why doesn't Velocity have this already?

Answering your real question, because it's a known bug.  :(
    http://issues.apache.org/bugzilla/show_bug.cgi?id=33113

## We need to fix the parser.

Best regards,
-- Shinobu

--
Shinobu Kawai <shinobu.kawai@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message