问题描述
当我在我的GWTP项目的MyView.ui.xml UiBinder中声明一个GwtQuery DragAndDropCellTree时,我不能GWT编译它:
[3] xmlns:gq =urn:import:gwtquery.plugins.droppable.client.gwt
...
[59]< gq:DragAndDropCellTree>< / gq :DragAndDropCellTree>
我遵循在Eclipse中使用Maven。
我不知道我的问题在于GWT,GWTP,Maven还是GwtQuery
任何想法我做错了什么?
- 如果没有声明,但在UiBinder中导入gwtquery.plugins.droppable.client.gwt,我可以成功编译
- 我可以在MyView.java而不是UiBinder中声明时成功编译
- 在声明任何其他DragAndDrop时无法编译,也不能在声明时一个用于不同的UiBinder
我认为我想到了这一点。
。
When I simply just declare a GwtQuery DragAndDropCellTree in my MyView.ui.xml UiBinder in my GWTP project, I cannot GWT Compile it:
[3] xmlns:gq="urn:import:gwtquery.plugins.droppable.client.gwt"
...
[59] <gq:DragAndDropCellTree></gq:DragAndDropCellTree>
I followed GwtQuery Configuration using Maven in Eclipse.I'm not sure if my problem lies in GWT, GWTP, Maven, or GwtQuery
Any ideas what I am doing wrong?
- Without the declaration, but with the import in the UiBinder of gwtquery.plugins.droppable.client.gwt, I can successfully compile
- I can successfully compile when making the declaration in MyView.java instead of UiBinder
- I cannot compile when declaring any other DragAndDrop either, nor when declaring one in a different UiBinder
I think I figured this one out.Any Widget used in UiBinder must have a zero-arg constructor...
DragAndDropCellTree does not have a zero-arg constructor. So it makes sense that I could declare in MyView.java but not MyView.ui.xml.
So this was a GWT <-> GwtQuery problem.
These are alternatives to still use UiBinder.
这篇关于GWT(2.7)在GWTP(1.5.1)项目中的UiBinder中声明GwtQuery(1.0.6)Widget时编译失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!