Kepler の GWTQuery-UI でダイアログを使用しようとしていますが、何が問題なのかわかりません。https://code.google.com/p/gwtquery-ui/wiki/GettingStartedにある指示にできる限り従いました。次のコード設定があります
gwt.xml
<inherits name='gwtquery.plugins.UiGoogleCdn' />
<inherits name='gwtquery.plugins.UiEmbedded' />
gwtquery.plugins.Ui も試しましたが、それでも問題は解決しませんでした。
私のJavaファイルには次のものがあります
import static com.google.gwt.query.client.GQuery.*;
import static gwtquery.plugins.ui.Ui.Ui;
import com.google.gwt.query.client.Function;
プロジェクトのhtmlには次のものがあります。
<div style="display: none;" class="gwt-DlgBox">This is a test to see if this shows up</div>
メインロジックには、次のクリックハンドラーがあります
@UiHandler("btnShow")
public void btnShow(ClickEvent event)
{
int x = 0;
try
{
x = $(".gwt-DlgBox").length();
$(".gwt-DlgBox").as(Ui).dialog();
}
catch(Throwable e)
{
e=e; // just so I can debug break here.
}
}
デバッグすると次のエラーが表示されます: 80 行目: メソッド 'com.google.gwt.query.client.Function.f(Lcom/google/gwt/user/client/Event;Ljava/lang/Object;) を参照しています: 使用できませんメソッドを解決する
コード x = 1; をステップ実行すると、これは正しいですが、.dialog() 行は上記のエラーで失敗します。
コンパイルしようとすると、次のエラーが発生します
[エラー] 'jar:file:/C:/src/gwtquery-ui-r146.jar!/gwtquery/plugins/ui/UiWidget.java' のエラー [エラー] 80 行目: メソッド 'com.google.gwt を参照しています。 query.client.Function.f(Lcom/google/gwt/user/client/Event;Ljava/lang/Object;)': メソッドを解決できません
どんな助けでも大歓迎です。はい、私はGWTを初めて使用し、何が欠けているのか理解できません。
ありがとう。