You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrea Chiumenti <ki...@gmail.com> on 2007/02/03 16:16:37 UTC

Help with listeners

Hello i'd like to create a form component that receive two listeners as
parameters.

The @Submit listener must to be bount to the component listenter, how can i
call in java inside the component listener, the other two parameter
listeners ?

I want something like:

public void doSubmit(IRequestCycle cycle) {
  //call param listener 1
  //call param listener 2
}

thx,
kiuma

Re: Help with listeners

Posted by Andrea Chiumenti <ki...@gmail.com>.
sorry found the solution by myself :)

public void doSubmit(IRequestCycle cycle) {
  getListener1.actionTriggered(this, cycle);
  getListener2.actionTriggered(this, cycle);
}

On 2/3/07, Andrea Chiumenti <ki...@gmail.com> wrote:
>
> Hello i'd like to create a form component that receive two listeners as
> parameters.
>
> The @Submit listener must to be bount to the component listenter, how can
> i call in java inside the component listener, the other two parameter
> listeners ?
>
> I want something like:
>
> public void doSubmit(IRequestCycle cycle) {
>   //call param listener 1
>   //call param listener 2
> }
>
> thx,
> kiuma
>