Image 如何在GWT UiBinder中定义图像的标题文本?

Image 如何在GWT UiBinder中定义图像的标题文本?,image,gwt,default,uibinder,Image,Gwt,Default,Uibinder,我正在为i18n使用GWT消息 在ui.xml文件中,我定义: <g:Image ui:field="logo" url="img.png"> <ui:attribute name='title' ui:description='tooltip for image'/> </g:Image> 在应用程序启动时,GWT环境会抱怨:封闭元素需要为属性“title”提供默认值 我找不到任何关于将默认值添加到的内容。你知道怎么做吗?弄明白了 ui:attribu

我正在为i18n使用GWT消息

在ui.xml文件中,我定义:

<g:Image ui:field="logo" url="img.png">
<ui:attribute name='title' ui:description='tooltip for image'/>
</g:Image>

在应用程序启动时,GWT环境会抱怨:封闭元素需要为属性“title”提供默认值

我找不到任何关于将默认值添加到的内容。你知道怎么做吗?

弄明白了

ui:attribute上没有缺少属性!只需将title='the default text'添加到g:Image标记中