I've made my own version of an ImageCell so that I can include the
title information (ie tooltip) with images in my CellTable.  However,
I can't get my images to load when passing in multiple arguments to
the SafeHtmlBuilder.  I've checked the urls, and the one I'm passing
in is the same as the one loaded successfully elsewhere on the page
(inside a normal ImageCell), but the images inside my class won't
load.  I'd really appreciate it if someone could clue me in what's
going on.

Relevant code bits:

interface Template extends SafeHtmlTemplates {
                @Template("<img src=\"{0}\" title=\"{1}\" alt=\"{2}\" />")
                SafeHtml img(String url, String title, String altText);
        }

@Override
        public void render(ImageProperties value, Object key, SafeHtmlBuilder
sb) {
                if (value != null) {
                        // The template will sanitize the URI.
                        sb.append(template.img(value.getUrl(), value.getTitle(),
value.getAltText()));
                }
        }

---------------------
public ImageProperties(String url, String title, String altText) {
                this.setUrl(url);
                this.setTitle(title);
                this.setAltText(altText);
        }
---------------------
ImageProperties properties = new
ImageProperties(DeviceIcons.INSTANCE.Unknown_16x16().getURL(),
"Unknown", "");


Thanks in advance,
John

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to