This gets me close (and I love the class name): 

String myImageHtml = 
AbstractImagePrototype.create(Resources.sSingleton.fDelete()).getHTML();
SafeHtml mySafeImageHtml = new 
OnlyToBeUsedInGeneratedCodeStringBlessedAsSafeHtml(myImageHtml);
GWT.create(MyTemplates.class).generateCellHtml(mySafeImageHtml);

 When used in combination with this:

public interface MyTemplates extends SafeHtmlTemplates {
@Template("{1}")
SafeHtml generateCellHtml(SafeHtml imageUrl);
}

However, the template I want to use is more complex than this test case, 
with other HTML surrounding the image tag, and most importantly, the image 
tag having an id attribute (so I can get a browser event when it is 
clicked).  The tag generated by AbstractImagePrototype does not appear to 
have an id field.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/tpT8FLFhe_0J.
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.

Reply via email to