That's what I'm doing, but I thought that perhaps I was choosing the hard way
and decided to ask the list ;-)

Thanks
Pedro


Citando "Hensley, Richard" <[EMAIL PROTECTED]>:

> What you will need to do is have the notion of selected and/or tag be
> parameters that are inherited through your chain of components.
>
> You could also create a few custom components. A form, submit, and submit
> link that you use through out your application and know the semantics you
> desire.
>
> -----Original Message-----
> From: Pedro Abelleira Seco [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 06, 2005 10:21 AM
> To: Tapestry users
> Subject: RE: Making listener invocation at form end
>
> Thank you very much, but I need a way to do that component friendly. I
> mean, if I pack a button inside a component wich is used in another
> component, ... which is used inside a Form, the forms knows nothing
> about the deeply nested button.
>
> I have to think about it, though.
>
> Thanks
>
>
> El Xov, 06-10-2005 a las 13:12 -0400, Hensley, Richard escribió:
> > <form jwcid="@Form" listener="ognl:listeners.submit">
> > <input jwcid="@Submit" tag="ognl:listeners.buttonListener"
> > selected="ognl:whichListner" />
> > </form>
> >
> > public void submit(IRequestCycle cycle) {
> >   IActionListener l = getWhichListener();
> >   if (l != null) {
> >     l.actionTriggered(<I don't remember what to pass here>, cycle);
> >   }
> > }
> >
> > I think this technique is documented on the list, you might try searching
> > for actionTriggered on gname.org
> >
> > Richard
> > -----Original Message-----
> > From: Hensley, Richard [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 06, 2005 10:06 AM
> > To: Tapestry users
> > Subject: RE: Making listener invocation at form end
> >
> > In general, you need to use the tag/selected parameters, and then use the
> > value of your selected to determine which listener to call from within
> your
> > form submit listener.
> >
> > A reasonable way to do this is to make your selected an IActionListener,
> > make your take a listener, and then trigger the action from your form
> > submit.
> >
> > -----Original Message-----
> > From: Pedro Abelleira Seco [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 06, 2005 9:56 AM
> > To: Tapestry users
> > Subject: Making listener invocation at form end
> >
> > I need to defer the invocation of a listener method until the end of
> > form procesing.
> >
> > What is the correct way to do this in Tapestry 3? I know that this is
> > supported in t4, but I need to do it in t3.
> >
> > Thanks a lot
> >
> >
> > ---------------------------------------------------------------------
> > 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]
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to