Saturday, December 20, 2014

Re: com.google.gwt.safehtml.shared.SafeHtml' must be a class

Wow. Jens, thank you. Can't believe I missed that. There is no render() method for the 'starImage' because it was removed a while back, however, I guess I forgot to remove it from the the ui.xml file. Bizarre that the error showed up now and not before.

With that line removed it compiles now under SDM.

Thanks for being a fresh set of eyes.

Wayne


On Saturday, December 20, 2014 11:57:05 AM UTC-8, Jens wrote:
Maybe you have not pasted it but you did not provide a method parameter on the render() method for

<ui:with field='starImage' type='com.google.gwt.safehtml.shared.SafeHtml'/>

Without such a method parameter GWT will probably try to call GWT.create(SafeHtml.class) to get an instance for the <ui:with> field, which fails because there are no replace-with/generate-with rules for the SafeHtml interface in GWT.


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment