velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: How to call a Java method with params from velocity?
Date Tue, 02 Dec 2008 14:49:58 GMT
No, it just does $customfield.getValue($issue).  toString() is only
called on the values being rendered.  $issue is not being rendered
here, it's just being passed to getValue().

Are you sure getValue is a public method in a public class?

On Tue, Dec 2, 2008 at 2:29 AM, kLy <qpan@army.com> wrote:
>
> Hi
>
> I'm using velocity for Jira at the moment. Very noob to Velocity, but it
> seems that every reference you write automatically gets the toString called?
> So I'm not able to write: $customfield.getValue($issue) since it essentially
> calls $customfield.getValue($issue.toString()) right? Which of course won't
> be right.
>
> My code is this:
>
> #foreach ($cf in
> $custfields)&customfield_$cf.getIdAsLong()=$cf.getValue($issue)#end
> which gives this error for the getValue statement: "is not a valid
> reference"
>
> The $cf and $issue references should be correct since the other methods get
> called correctly.
>
> Thanks!
> --
> View this message in context: http://www.nabble.com/How-to-call-a-Java-method-with-params-from-velocity--tp20789552p20789552.html
> Sent from the Velocity - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

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


Mime
View raw message