• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Looking for best practices for sending data/events between composites

Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I currently have a small GWT 2.2 project broken out into several
Composites and DialogBox subclasses. In particular, I have a sub-
class of DialogBox that contains a FormPanel (but it doesn't have
to). On this form, I am collecting some data that, once "submitted",
needs to be passed up to the parent.

I see getParent().fireEvent(), but this only contains very basic data
about the event. I actually want details of the form, or perhaps to
construct my own event and then fire that off.

I have seen some discussion of EventBus but this looks particular to
MVP, which I do not plan on using.

Therefore, I am looking for any tips/suggestions on how I would best
accomplish this task.

Any help would be appreciated; thanks.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic