我们正在从Vaadin 8迁移到Vaadin流14。为了一片片地迁移,我们使用了MPR。我们使用Flow 14的航线进行导航。对于每个视图,我们都创建了一个MprRouteAdapter。在一个小项目中,这是一种很好的方法,但是当我们使用一些附加组件转到相对较大的项目时,导航到视图会显示以下消息,而视图没有显示:
Widgetset 'xx.MyAppWidgetset' does not contain an implementation for
com.vaadin.mpr.MprUIContent. Check the connector's @Connect mapping, the widgetset's GWT module
description file and re-compile your widgetset. In case you have downloaded a vaadin add-on
package, you might want to refer to add-on instructions.下面是MyAppWidgetset.gwt.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
<module>
<inherits name="com.vaadin.DefaultWidgetSet"/>
<inherits name="com.vaadin.mpr.MprWidgetSet" />
<inherits name="org.vaadin.addons.WidgetSet" />
<inherits name="org.vaadin.risto.formsender.widgetset.FormSenderWidgetset" />
<inherits name="org.vaadin.hene.popupbutton.widgetset.PopupbuttonWidgetset" />
<inherits name="org.tepi.listbuilder.WidgetSet" />
<inherits name="com.vaadin.addon.onoffswitch.WidgetSet" />
<inherits name="org.vaadin.addon.leaflet.Widgetset" />
</module>目标更新-widgetset和编译已经添加到maven构建文件中。
我有错过什么吗?请帮我解决这个问题。
提前谢谢。
发布于 2022-05-18 14:18:23
该问题通过删除MyAppWidgetset.gwt.xml和注释@MprWidgetset来解决。
https://stackoverflow.com/questions/72220619
复制相似问题