Make sure that the parent listener has the correct visibility. If the
listener is package private and the child component is in a different
package, the listener won't be triggered...

On Tue, Mar 3, 2009 at 10:21 AM, dhning <ningd...@gmail.com> wrote:

> I think what you need is
> Class Parent {
>  onChildEvent(int id){
> // Do something ....
> }
>
>
> Thanks,
>
> DH
>
>
> ----- Original Message -----
> From: "Davor Miku" <davorm...@gmail.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Sent: Tuesday, March 03, 2009 1:05 PM
> Subject: Action Link In Parent Component
>
>
> > Hi!
> >
> > I want to set action link in child component, but action needs to be
> handled
> > in parent component.
> >
> > I tried to hack like:
> >
> > <t.parent >
> >     <t.child />
> > </t.parent>
> >
> >
> > Class Parent {
> >
> > onActionFromChildEvent(int id){
> > // Do something ....
> >    }
> >
> > }
> > In child.tml :
> > <a href="parent.childevent/${something.id}" >Action</a>
> >
> >
> > but I'm getting :
> >
> > Component parent does not contain an embedded component with id
> > 'childevent'.
> >
> > How can I achieve this?
> >
>

Reply via email to