You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Adam Williams <ad...@gmail.com> on 2005/04/11 19:32:05 UTC
Map creation outside of #set
Hello,
I am buiding something similar in spirit to Rails
(http://www.rubyonrails.org), http://www.javaonsails.org.
Unfortunately, Java is not so elegant when it comes to writing the
HTML templates. Enter Velocity.
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?
adam williams
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Velocity 1.5 release? (was Re: Map creation outside of #set)
Posted by jian chen <ch...@gmail.com>.
Thanks for the update and information regarding release schedule.
I am definitely willing to do what I can to help out. Cheers,
Jian
On 4/11/05, Shinobu Kawai <sh...@gmail.com> wrote:
> Hi Jian,
>
> > Talking about the bug fix, can someone kindly give me an idea if there
> > will be a major release in the near future? say, 6 months?
> >
> > It seems to me that the development of Velocity core has been kind of stalled.
>
> I'm not sure about the release, but remember, this is open source and
> you can help get that release out. :)
> http://wiki.apache.org/jakarta-velocity/IssuePriorities
>
> Best regards,
> -- Shinobu
>
> --
> Shinobu Kawai <sh...@gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Velocity 1.5 release? (was Re: Map creation outside of #set)
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Jian,
> Talking about the bug fix, can someone kindly give me an idea if there
> will be a major release in the near future? say, 6 months?
>
> It seems to me that the development of Velocity core has been kind of stalled.
I'm not sure about the release, but remember, this is open source and
you can help get that release out. :)
http://wiki.apache.org/jakarta-velocity/IssuePriorities
Best regards,
-- Shinobu
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Map creation outside of #set
Posted by Will Glass-Husain <wg...@forio.com>.
Hi Jian,
There's no timeline at the moment but progress occurs at sporadic intervals.
We went through a spate of commit activity at the start of the year
committing many open issues. I'm hopeful we can pick this up again,
particularly if more patches get posted. The velocity-tools subproject is
pretty strong, as is the mailing list / user support community in general.
Best,
WILL
----- Original Message -----
From: "jian chen" <ch...@gmail.com>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Monday, April 11, 2005 1:47 PM
Subject: Re: Map creation outside of #set
Hi,
Talking about the bug fix, can someone kindly give me an idea if there
will be a major release in the near future? say, 6 months?
It seems to me that the development of Velocity core has been kind of
stalled.
Thanks,
Jian
On 4/11/05, Shinobu Kawai <sh...@gmail.com> wrote:
> Hi adam,
>
> > > 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
> >
> > Thank you, Shinobu. Any idea when that might happen? Looks like the
> > bug has be outstanding for three months? I would love to fix it, but I
> > have never worked on a parser before... outside of a SAX one, anyway
> > ;)
>
> Yeah, I know. Lots of bugs have been left alone for a while. Looks
> like the committers and contributors have been quite busy lately.
> (I'd work on it if I had *enough* consecutive free time.)
>
> Anyways, if you're planning to take a shot at it, I guess you'll need
> to understand how JavaCC works.
>
> Best regards,
> -- Shinobu
>
> --
> Shinobu Kawai <sh...@gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Map creation outside of #set
Posted by jian chen <ch...@gmail.com>.
Hi,
Talking about the bug fix, can someone kindly give me an idea if there
will be a major release in the near future? say, 6 months?
It seems to me that the development of Velocity core has been kind of stalled.
Thanks,
Jian
On 4/11/05, Shinobu Kawai <sh...@gmail.com> wrote:
> Hi adam,
>
> > > 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
> >
> > Thank you, Shinobu. Any idea when that might happen? Looks like the
> > bug has be outstanding for three months? I would love to fix it, but I
> > have never worked on a parser before... outside of a SAX one, anyway
> > ;)
>
> Yeah, I know. Lots of bugs have been left alone for a while. Looks
> like the committers and contributors have been quite busy lately.
> (I'd work on it if I had *enough* consecutive free time.)
>
> Anyways, if you're planning to take a shot at it, I guess you'll need
> to understand how JavaCC works.
>
> Best regards,
> -- Shinobu
>
> --
> Shinobu Kawai <sh...@gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Map creation outside of #set
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi adam,
> > 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
>
> Thank you, Shinobu. Any idea when that might happen? Looks like the
> bug has be outstanding for three months? I would love to fix it, but I
> have never worked on a parser before... outside of a SAX one, anyway
> ;)
Yeah, I know. Lots of bugs have been left alone for a while. Looks
like the committers and contributors have been quite busy lately.
(I'd work on it if I had *enough* consecutive free time.)
Anyways, if you're planning to take a shot at it, I guess you'll need
to understand how JavaCC works.
Best regards,
-- Shinobu
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Map creation outside of #set
Posted by Adam Williams <ad...@gmail.com>.
> > I really need the ability to define a Map outside of a #set. For instance:
> 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
Thank you, Shinobu. Any idea when that might happen? Looks like the
bug has be outstanding for three months? I would love to fix it, but I
have never worked on a parser before... outside of a SAX one, anyway
;)
adam
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: Map creation outside of #set
Posted by Shinobu Kawai <sh...@gmail.com>.
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 <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org