Thx Richard,
In your opinion whats better/smarter:
1) "ognl:id + '-cg-' + (index * 1 + 1)"
2)"ognl:id + '-cg-' + add(index,1)"

?

On 1/24/07, Richard Clark <[EMAIL PROTECTED]> wrote:

On 1/24/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:

> "ognl:id + '-cg-' + (index + 1)"
>
> the index is an int property.
> I expect the result to be:
>
> comp-cg-1
> etc. but instead I've back
> comp-cg-01

It's ugly, but one answer is  "ognl:id + '-cg-' + (index * 1 + 1)",
using the multiplication to force interpretation as a number.

...Richard

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


Reply via email to