I was also using Hyperlink.addClickHandler. I'd simply like to wrap an image in an <a> tag so that I have a clickable image (with the correct cursor). I can switch my Hyperlinks to Anchors but I see ImageBundle is now deprecated too. Unfortunately I see no equivalent to AbstractImagePrototype.getHTML() in ClientBundle/ImageResource. I've found I can wrap my ImageResource in an AbstractImagePrototype but that sounds inefficient. Is there a better way than this?
GWT 1.7: Hyperlink myLink = new Hyperlink(myImageBundle.myImage().getHTML(), true, ""); GWT 2.0: Anchor myLink = new Anchor(AbstractImagePrototype.create (myClientBundle.myImage()).getHTML(), true); -- 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.
