Re: Help with ognl

2007-02-04 Thread Jesse Kuhnert
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.

Re: Help with ognl

2007-01-24 Thread Andrea Chiumenti
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

Re: Help with ognl

2007-01-24 Thread Richard Clark
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 fo

RE: Help with ognl...

2006-11-22 Thread Mark Stang
ark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Robert Zeigler [mailto:[EMAIL PROTECTED] Sent: Wed 11/22/2006 12:01 PM To: Tapestry users Subject: Re: Help with ognl... the binding type for default-value is

Re: Help with ognl...

2006-11-22 Thread Robert Zeigler
the binding type for default-value is already ognl. So ognl is chocking on the ognl: part. Try something like: default-value="false" :) Robert Mark Stang wrote: > I am trying to create a 3.x parameter: > > direction="in" default-value="ognl:@[EMAIL PROTECTED]"/> > > I was using a "boolean