On Friday, June 15, 2012 5:28:54 AM UTC+2, tong123123 wrote:
>
> I found in gwt 2.4, the ImageCell Class is 
>  
> interface Template extends SafeHtmlTemplates{
>    @Template ("<img src=\"{0}\"/>">
>    SafeHtml img(String url);
> }
>
> so it will rise the warning
> "Template with variable in URL attribute context:The template code 
> generator cannot guarantee HTML-safety of the temp;ate --........"
> so to eliminate this warning, need extend the GWT 2.4 ImageCell Class?
>

GWT 2.5 will add a SafeImageCell based on SafeUri, so I'd advise you to 
just wait for 2.5 and switch to SafeImageCell (using UriUtils to build a 
SafeUri out of a String), or possibly copy SafeImageCell in your project to 
start using it now.
 

-- 
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/-/9j4V89zi6D4J.
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