If I understand correctly, your component is now hardwired to a page
that has a particular listener method. Pretty closely coupled don't
you think?
Why not add a listener parameter to the component?
<parameter name="moveListener" type="IActionListener">
<span jwcid="@DirectLink"
listener="ognl:moveListener">
Move</span>
Geoff
On 5/29/05, Christian <[EMAIL PROTECTED]> wrote:
> Pablo Ruggia schrieb:
>
> >
> >you can use "ognl:page.listeners.actionDisplayMessage" as the value of
> >listener parameter to get the Page to listen to that event.
> >
> >
> yepp, perfect, thx
>
>
> >
> >
> >>2. This is more or less the other way round: I have a direct link in the
> >>page which has another listener:
> >><span jwcid="@DirectLink"
> >> listener="ognl:listeners.actionMoveMessage">
> >> Move</span>
> >>Now here I would like to give *both the page and the component* the
> >>chance to catch that event.
> >>
> >>--> So my question boils down to:
> >>How can I attach another listener to a directlink event?
> >>
> >>
> >
> >Mmm, i can't imagine a solution to that.
> >I would call the component listener and then insede it call page
> >listener inside the method.
> >
> >Sorry if i don't understand what you need.
> >
> >
> >
>
> You understood perfectly :) I now simply delegate everything to the page
> (e.g. your suggestion) an let it call whatever method needed from the
> component.
>
> So no listener adding whatsover, but it does the trick,
>
> thank you for your help
>
> Cheers
>
> cs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]