Re: About event handling in Layout component

2010-04-23 Thread Josh Canfield
> What would be the right pattern If I have something like... > > PageA > - Layout > - Button > > PageB > - Layout > - OtherButton PageA { @Component private Layout layout; Object onButtonEvent(String eventArg) { return layout.handleButtonEvent(eventArg); } } PageB { @Component

Res: About event handling in Layout component

2010-04-23 Thread Everton Agner
cal, but I think it makes some things harder for a tiny reason. Thanks! - Everton De: Thiago H. de Paula Figueiredo Para: Tapestry users Enviadas: Quinta-feira, 22 de Abril de 2010 15:56:13 Assunto: Re: About event handling in Layout component On Thu, 22 Apr

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:45:53 -0300, Raul Raja Martinez wrote: Yes if the body of a Layout component is considered a child component of the Layoutand all events triggered from components that are children would pass through Layout as well when bubbling up. Right. If that was the case firin

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
2010/4/22 Thiago H. de Paula Figueiredo : > On Thu, 22 Apr 2010 15:20:13 -0300, Raul Raja Martinez > wrote: > >> Thanks Thiago, Makes sense, >> >> What would be the right pattern If I have something like... >> >> PageA >>  - Layout >>  - Button > > Wouldn't it be > > PageA >  - Layout >  - - Butto

Re: About event handling in Layout component

2010-04-22 Thread Norman Franke
To work around in various odd situations, a component can handle its event and then issue another event that will percolate up to the parent components. Plus it can be given a better name and even pass extra parameters. Norman Franke Answering Service for Directors, Inc. www.myasd.com On

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 15:20:13 -0300, Raul Raja Martinez wrote: Thanks Thiago, Makes sense, What would be the right pattern If I have something like... PageA - Layout - Button Wouldn't it be PageA - Layout - - Button ? Image both Button and OtherButton are components and that Layout

Re: About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
Thanks Thiago, Makes sense, What would be the right pattern If I have something like... PageA - Layout - Button PageB - Layout - OtherButton Image both Button and OtherButton are components and that Layout has a Growl notification system. I want the growl notification showing up a message w

Re: About event handling in Layout component

2010-04-22 Thread Thiago H. de Paula Figueiredo
On Thu, 22 Apr 2010 14:40:26 -0300, Raul Raja Martinez wrote: Hi, Hi! Is it possible to handle events inside components that have been triggered by other events? Events are triggered by components, not by events themselves. If a page does not handle an event wouldn't that event be bub

About event handling in Layout component

2010-04-22 Thread Raul Raja Martinez
Hi, We have several pages that contain a Layout component wrapping the context of a page. Also those pages have components that trigger events. We would like to handle some of the events in the Layout component. The docs state that for Event Bubbling "The event will bubble up the hierarchy, until