Help with OGNL expression

"Luis Neves" <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <002201c2a067$92ed5c20$6401a8c0@wasp>
 Hello all,

 I have a component (I will call this component FooBar from now on) which
 has a DirectLink that triggers a listener in the containing page.
 Like this:

 <component id="directDoStuff" type="DirectLink">
  <binding name="parameters" expression="paramOne"/>
  <field-binding name="stateful" field-name="Boolean.FALSE"/>
  <binding name="listener" expression="page.listeners.listenerName"/>
 </component>

 This works, but it isn't very smart, I may have the need to put more
 that one component FooBar in the same page and so I need to trigger
 different listeners.
 The way i figured to do this was to add a "in" parameter (type String)
 to the FooBar component that tells which listener to trigger.

 The problem I'm having now is that I can't seem to find a OGNL
 expression that grabs the parameter and constructs a an expression which
 triggers the right listener.
 Something like:

 <binding name="listener"
xpression="page.listeners.listener.( paramListenerName )"/>


 Did I make sense?
 Any ideas?

 Best regards,
 Luis Neves



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.