Deferred binding failed GWT using uibinder

为君一笑 提交于 2019-12-07 23:14:27

You have conflicting information in your code: a @UiConstructor and a @UiFactory (not conflicting actually, there's an order of precedence, but it can be confusing to the developer, i.e. you).

UiBinder will prefer the @UiFactory over the @UiConstructor, and your factory has no argument, so the teamNames attribute from your XML is tentatively mapped to a setTeamNames setter, which doesn't exist, hence the “Class CricketScores has no appropriate setTeamNames() method” error.

The problem is conceptual in your code: your UserDashboard is constructed with a list of team names that it passes to the CricketScores widget, so that widget shouldn't have a teamNames attribute in the XML.

I was getting same error and uiField(provided=true) was getting null but it got resolved when I created object of respective component in constructor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!