How do you get GWT 2.0 to accept clicks on two different Widgets added to a LayoutPanel?
Posted
by kerrr
on Stack Overflow
See other posts from Stack Overflow
or by kerrr
Published on 2010-04-14T17:41:32Z
Indexed on
2010/04/14
17:43 UTC
Read the original article
Hit count: 156
gwt
Using GWT 2.0 I have an entry point that adds two Widgets to a LayoutPanel. The Widgets both handle click events and have click events ergistered to them. The problem is that only the last widget added to the LayoutPanel can actually be clicked. Switch the order in which the widgets are added switches the widget that works. Add mroe widgets and still the only you can click is the last one added to the LayoutPanel.
Any idea why this is? Is there any reasoning behind the behaviour, or have I missunderstood what is happening under the covers? How do I gat all widgets in the LayoutPanel to accept events? Should I be using another panel class?
I'm not too bothered if the LayoutPanel prevents anything below it from being clicked, but want all Widgets added to it to be clickable.
© Stack Overflow or respective owner