【问题标题】:GWT (2.7) Compile fails when declaring a GwtQuery (1.0.6) Widget in UiBinder in GWTP (1.5.1) projectGWT (2.7) 在 GWTP (1.5.1) 项目中的 UiBinder 中声明 GwtQuery (1.0.6) 小部件时编译失败
【发布时间】:2015-11-18 16:37:54
【问题描述】:

当我只是在我的 GWTP 项目的 MyView.ui.xml UiBinder 中声明一个 GwtQuery DragAndDropCellTree 时,我无法 GWT 编译它:

[3]  xmlns:gq="urn:import:gwtquery.plugins.droppable.client.gwt"
...
[59]       <gq:DragAndDropCellTree></gq:DragAndDropCellTree>

[错误] urn:import:gwtquery.plugins.droppable.client.gwt 中没有匹配“DragAndDropCellTree”的类: (:59)

[错误] 'gen/my/package/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment.java' 中的错误 [错误] 无法通过延迟绑定解析“my.package.MyView.Binder”

[WARN] 对于以下类型,生成的源代码从未提交(您是否忘记调用 commit()?) [警告] my.package.MyView_BinderImpl

我在 Eclipse 中使用 Maven 关注了 GwtQuery Configuration。 我不确定我的问题是出在 GWT、GWTP、Maven 还是 GwtQuery

任何想法我做错了什么?

  • 不用声明,但是在gwtquery.plugins.droppable.client.gwt的UiBinder中导入,可以编译成功
  • 在 MyView.java 中而不是 UiBinder 中进行声明时可以成功编译
  • 我在声明任何其他 DragAndDrop 时也无法编译,也无法在其他 UiBinder 中声明一个时进行编译

【问题讨论】:

    标签: maven gwt uibinder gwtp gwtquery


    【解决方案1】:

    我想我想通了。 Any Widget used in UiBinder must have a zero-arg constructor...

    DragAndDropCellTree 没有零参数构造函数。所以我可以在 MyView.java 但不能在 MyView.ui.xml 中声明是有道理的。

    所以这是一个 GWT GwtQuery 问题。

    这些是alternatives to still use UiBinder

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多