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
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to