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

forcing evaluation in OGNL

Subject: forcing evaluation in OGNL
From: Todd O'Bryan
Date: Sun, 21 Nov 2004 07:40:31 -0500
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

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