Re: Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
Thanks Musachy, that was it! I had tried various combinations of 'p.myInt' "p.myInt" '#p.myint' "$(p.myInt)", that wouldn't work before. On Wed, Jan 28, 2009 at 9:54 AM, Musachy Barroso wrote: > value="@com.whatever.myactioncl...@getcodetype(p.myInteger)'"/> > > will work iff, static calls

Re: Dynamic OGNL population question

2009-01-28 Thread Musachy Barroso
will work iff, static calls are enabled for OGNL, and "p" is a field of the object on top of the stack, which I doubt, it should be something like: assuming that "p" is in the stack pointing to your person object. musachy On Wed, Jan 28, 2009 at 11:49 AM, Ralf Fischer wrote: > On Wed, Jan 2

Re: Dynamic OGNL population question

2009-01-28 Thread Ralf Fischer
On Wed, Jan 28, 2009 at 5:09 PM, Ryan Peterson wrote: > p is a custom object, say person. So it could be person.age for example. > > I would use the stackObj.method() way, but the method I need to call is > external to the object on the stack. Why don't you perform this method invocation in your

Re: Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
p is a custom object, say person. So it could be person.age for example. I would use the stackObj.method() way, but the method I need to call is external to the object on the stack. Basically I'm trying to pass the value of person.age into the OGNL static method call to return a result based on

Re: Dynamic OGNL population question

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:50:27 Ryan Peterson wrote: > Hi guys, I have an object accessible using />, which displays an arbitrary integer. > > Is there a way to dynamically put this into an OGNL method call, something > like: > >value="@com.whatever.myactioncl...@getcodetype(p.myInte

Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
Hi guys, I have an object accessible using , which displays an arbitrary integer. Is there a way to dynamically put this into an OGNL method call, something like: Right now I can populate @getCodeType with an integer value @getCodeType(111) for example, which returns the expected results. But