Rob Kischuk said:
...
> public String leftPad(String string, int width) {
--------------------^-----------------------
note the capitalization
...
> And have defined macros in my template:
...
> #macro(leftpad $message)
> ${formatter.leftpad($message, 8)}
-------------------^-----------------
> #end
note the capitalization.
...
> Strangely, the #currency macro fully executes, but the #leftpad macro leaves
> $formatter.leftpad($orderLine.quantity, 8) after the template has been
> processed. Is there something I'm doing wrong here?
it looks mismatched capitalization. if not (and that typo is only in this
email), then you might double check that $orderLine.quantity is actually
returning a string.
> And is there a different way I should be doing this?
apart from the capitalization typo, it looks like a good pattern.
Nathan Bubna
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]