私の GWT アプリケーションでは、一部のユーザー インターフェイス要素に SmartGWT ライブラリも使用しています。最近、いくつかの GWT ボタン (「更新」や「保存」など) のテキストを SmartGWT のアイコン セットのアイコン (たとえば、/com/smartclient/theme/graphite/public/sc/の更新アイコン) に置き換えるというアイデアがありました。スキン/グラファイト/images/actions/refresh.png
修飾名を使用して、UiBinder テンプレートでアイコンを使用できるようにしました。
<ui:image field="refreshIcon" resource="/com/smartclient/theme/graphite/public/sc/skins/Graphite/images/actions/refresh.png" />
プッシュボタンに使用します。
<g:PushButton ui:field="refreshButton" styleName="{style.Buttons}">
<g:upFace image="{refreshIcon}" />
</g:PushButton>
残念ながら、それは機能しません。Eclipse には文句はありませんが、アプリケーションを実行すると、次のエラーが発生します。
[ERROR] [MonitoringTool] - No com.google.gwt.resources.client.ClientBundle$Source annotation and no resources found with default extensions
参照されているsmartgwt.jarライブラリにバンドルされているアイコンをプッシュボタンに使用するにはどうすればよいですか?