Sounds like a potential ognl bug as well. The (index + 1) expression
should be interpreted as a separate addition expression from
everything else.

If you would be so kind as to file an issue here:

http://jira.opensymphony.com/browse/OGNL

I can take a look at fixing it during the next release.

On 1/24/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
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]
>
>




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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

Reply via email to