Hi, IMHO the EventBus should be used as it. Nevertheless (just suggestion), you could try to use another EventBus (named and signeton) or perhaps I don't know it it a viable sulution with GIN define a new Scope (ui hiearchical scope) to put this bus into.
HIH On Fri, Jan 29, 2010 at 8:46 AM, Mirco Dotta <[email protected]> wrote: > Hi, > > This is a question I've been asking myself several times, here is the use > case: > > I've got an action happening in a ChildPresenter, such as a > DeleteElementEvent. > The ParentPresenter would like to register to this type of events so that a > correct > reaction can be triggered. > > Now, a possible way to go is to pass the Event in the EventBus and having > the ParentPresenter > registering on the EventBus for such events. This is going to work, but I > really don't like this > solution as the Event is not application-wide and therefore should not be > polluting the event bus. > > I'd rather have a local event, but how can I achieve this? Should I create > a HandlerManager > it in the ParentPresenter... but then hwo can I pass it to the children > (GIN injection?!, but how?). > > I'm looking for a pattern, if anyone faced the problem and came up with a > solution, please share :) > > > -- Mirco > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
