http://www.youtube.com/watch?v=7x4hun_Kqks

On Tue, Dec 7, 2010 at 12:23 PM, Jeff Schwartz <[email protected]>wrote:

> Well if it works then there is no problem, right :)?
>
> I think you are over complicating you implementation. You should be
> abstracting the various parts of a page into composites and supporting
> communications between the various composites using the publish/subscribe
> design pattern. The ability to encapsulate your logic into components (and
> that is what GWT widgets are) and use custom APIs for event handling that
> implement the publish/subscribe pattern is what makes component based
> frameworks like GWT and Wicket, for examples, very friendly and powerful,
> especially to Java developers who have a Swing background.
>
> I have various views in my latest GWT application,
> http://lovemyvehicle.appspot.com/, which are all developed as per the
> above. These views have to dynamically swap in and out huge chunks of html
> depending upon what the user does in the page. The whole menu structure
> which also includes sub menus is also devised in that manner. For example,
> click events are caught by the buttons and links that fire them. These then
> notify listeners to those events who can be other composites who have
> registered to receive them. It all works and I never have to concern myself
> with event bubbling which is a blessing because of the disparity in event
> bubbling between browsers.
>
> Good luck.
>
> Jeff
>
>
> On Tue, Dec 7, 2010 at 10:01 AM, Ed Bras <[email protected]> wrote:
>
>> Sorry, but it does work: the event bubbling works fine and the dom
>> structure is perfectly fine...
>> Appearantly I can't easily recover the widget from the element.
>> I probably need to go through the child widgets in the HtmlPanel to find
>> out which one fired the event...
>>
>>  --
>> 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.
>>
>
>
>
> --
> *Jeff Schwartz*
>
>
>  --
> 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.
>



-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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.

Reply via email to