Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 如何使用GWT自定义SafeHtml元素?_Xml_Gwt - Fatal编程技术网

Xml 如何使用GWT自定义SafeHtml元素?

Xml 如何使用GWT自定义SafeHtml元素?,xml,gwt,Xml,Gwt,假设我的xml文件中有一个safehtml元素,如: <ui:safehtml ui:field="emptyPolicyBlurb"/> 我的IDE抱怨说: Expected 'com.google.gwt.safehtml.shared.SafeHtml', but 'com.google.gwt.dom.client.Element' found 我做错什么了吗?标记名区分大小写。试试这个 <ui:SafeHtml ui:field="emptyPolicyBlurb

假设我的xml文件中有一个safehtml元素,如:

<ui:safehtml ui:field="emptyPolicyBlurb"/>
我的IDE抱怨说:

Expected 'com.google.gwt.safehtml.shared.SafeHtml', but 'com.google.gwt.dom.client.Element' found

我做错什么了吗?

标记名区分大小写。试试这个

<ui:SafeHtml ui:field="emptyPolicyBlurb"/>

<ui:SafeHtml ui:field="emptyPolicyBlurb"/>