Tuesday, March 29, 2011

Overriding panel's iterator() prevents clickHandler from being called.

Hi,

I am new to GWT (and not that expert in Java) and I have a problem I
haven't been able to solve.

Here's my problem:

I want to do a panel (say a VerticalPanel) but also want it to have
scroll bars. So, what I did was to nest a VerticalPanel in a
ScrollPanel and then overrode the latter's iterator() with a call to
the former's iterator.

Attached is a (relatively) small test code showing the problem:

With the overriding iterator() in place, the SelectedItemsListPanel's
ClickHandler() doesn't get called. Comment the iterator() out and
everything works perfectly.


Regards,
--
Olivier

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment