Loading thumbnails of images as links in gwt

82 views
Skip to first unread message

Patssay

unread,
Apr 21, 2011, 5:57:11 PM4/21/11
to Google Web Toolkit
Hi,
I am trying to load thumbnail images as links in gwt. I am not able to
figure out the exact way to do this?
Could someone please help?


Thanks,
Sayali

nacho

unread,
Apr 22, 2011, 12:37:28 PM4/22/11
to google-we...@googlegroups.com
A link to do what? Go to another page? Stay in your hosted page and display another widget or perform some action?

Ben Imp

unread,
Apr 22, 2011, 3:24:33 PM4/22/11
to google-we...@googlegroups.com
The Image class implements HasClickHandlers, so you can just tie into that and do whatever you need to do when your handler gets called.

-Ben

Patssay

unread,
Apr 27, 2011, 9:22:10 AM4/27/11
to Google Web Toolkit
Hi,

Well, on clicking the image reload the page with different widgets.

I tried using the Clickhandler for the image but it threw a series of
exception like


com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
214)
at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
101)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:103)
at
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:
116)
at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:
151)
at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:
665)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1310)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1266)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

Alan Chaney

unread,
Apr 27, 2011, 10:29:21 AM4/27/11
to google-we...@googlegroups.com
I don't believe that's the full stack trace. A bit further down the screen it will probably give you
a hint as to what happened.

Alan

Reply all
Reply to author
Forward
0 new messages