Sorry Thiago, Thanks for the answer but I'm still not sure i've
explained this properly. Take the following example...
I have a page 'MyPage', who's root element is <html t:type="mylayout" ...>.
Within MyLayout i have an actionlink 'MyLink'.
I want to handle the event 'onActionFromMyLink' in MyPage.java. I would
expect that from innermost to outermost the component tree would be
MyLink-MyLayout-MyPage and therefore MyPage would be the root container
therefore could ultimately handle the event.
However when i try this I get the error. What have I misunderstood?
Regards, Paul.
Thiago H. de Paula Figueiredo wrote:
On Tue, 08 Jun 2010 08:57:03 -0300, Paul Stanton <p...@mapshed.com.au>
wrote:
"Note that events that are not handled by a component will bubble up
to the component's container"
I'm a little confused because I thought this meant I could have a
component containing components and handle the events from the root
container aka the page ?
The reverse is true. Think of the page and its components as a tree.
The page is the root, so it's on top. Events bubble up: from innermost
to outermost.
Should this listener get called or should I get :
Request event 'success' (on component MyPage:myForm.success) was not
handled; you must provide a matching event handler method in the
component or in one of its containers.
Testing yourself would give you a faster answer and it's a wonderful
way to learn how Tapestry works.. :)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org