简体   繁体   中英

Migrate Vaadin 8 to 14: Widgetset 'xx.MyAppWidgetset' does not contain an implementation for com.vaadin.mpr.MprUIContent

We are migrating from Vaadin 8 to Vaadin Flow 14. In order to migrate piece by piece, MPR is used. We use Flow 14's Route for navigation. For each view we created a MprRouteAdapter. This is proved a nice approach in a small project, but when we move to relatively bigger project with some addons, navigating to a view shows the following message and the view does not show:

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.

Below is MyAppWidgetset.gwt.xml file:

<?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>

The goal update-widgetset and compile have been added in maven build file.

Do I miss anything? Please help me to figure out the issue.

Thanks in advance.

该问题通过删除 MyAppWidgetset.gwt.xml 和注释 @MprWidgetset 得到解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM