tapestry-user@jakarta.apache.org
[Top] [All Lists]

Re: forcing evaluation in OGNL

Subject: Re: forcing evaluation in OGNL
From: Jamie Orchard-Hays
Date: Sun, 21 Nov 2004 13:01:27 -0500
I want to add that aside from your ognl question, ActionLinks are deprecated. They shouldn't be used in a production environment. Use DirectLinks instead.

Jamie
On Nov 21, 2004, at 7:40 AM, Todd O'Bryan wrote:

Suppose I have a bunch of ActionLinks encoded in a List, each with the name of a method I'd like to call. I'd like to display each link and bind its listener attribute to the appropriate method. I can't do:

<a jwcid="@ActionLink" listener="ognl:'listeners.'+listItem.methodName"> ... </a>

because the listener evaluates to a String, not a method. Is there a way to get OGNL to do a second round of evaluation so that my String "listeners.myMethod" gets resolved to the appropriate method?

If not, is there some way to set an instance variable in listItem to be the actual listener method instead of just its name?

TIA,
Todd


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>