You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Vombach <an...@psi.ch> on 2004/10/19 08:29:47 UTC
multiple parameters for listener
How do I pass multiple parameters to a custom listener? I did not find a
hint in the ognl guide.
It should be like
<a jwcid="@DirectLink" listener="ognl:listeners.myOwnListener"
parameters="ognl:<param1>, <param2> etc">
Or is it not possible?
Thanks Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: multiple parameters for listener
Posted by Mohammad Irfan <ir...@gawab.com>.
usually I just use 'ognl:{param0, param1, etc}'
and when I want to use it in the listener I use
public void activateActivity(IRequestCycle cycle) throws ActivityException {
Object[] param = cycle.getServiceParameters();
String activity = (String) param[0];
String projectName = (String) param[1];
hope it helps
Andreas Vombach wrote:
> How do I pass multiple parameters to a custom listener? I did not find
> a hint in the ognl guide.
> It should be like
> <a jwcid="@DirectLink" listener="ognl:listeners.myOwnListener"
> parameters="ognl:<param1>, <param2> etc">
> Or is it not possible?
>
> Thanks Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org