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