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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to