Or is Eventink what you are searching for?

see http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/EventLink.html


Inge Solvoll wrote:
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?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to