【发布时间】:2016-07-29 06:55:10
【问题描述】:
我正在使用带有 Spring Boot 的 Vaadin 7.6.3。我正在尝试使用 PopupButton 插件(但我认为问题不是插件所特有的)。
我将附加组件添加为 gradle 的依赖项。这是创建 PopupButton 的代码:
PopupButton btn = new PopupButton("Test Button");
btn.setContent(new Label("Test"));
layout.addComponent(btn);
通过 Gradle 的 Vaadin 插件,我运行了任务 vaadinCompile,该任务在 src/main/webapp/VAADIN/gwt-unitCache 中创建了文件 src/main/resources/addon/client/ListaideWidgetset.gwt.xml 和多个文件,并且
src/main/webapp/VAADIN/widgetsets/addon.client.ListaideWidgetset。我还在我的 UI 中添加了@Widgetset("addon.client.ListaideWidgetset")。我确认小部件集是通过客户端的?debug 模式使用的。
ListaideWidgetset.gwt.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Vaadin//DTD Vaadin 7//EN" "https://raw.github.com/vaadin/gwt/master/distro-source/core/src/gwt-module.dtd">
<!-- WS Compiler: manually edited -->
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
<set-configuration-property name="devModeRedirectEnabled" value="true" />
<set-property name="user.agent" value="ie8,ie9,gecko1_8,safari,ie10" />
<source path="client" />
<source path="shared" />
<collapse-all-properties />
<set-property name="compiler.useSymbolMaps" value="true" />
</module>
问题在于,在客户端上,该按钮显示为标准按钮(无 V 形),并且在单击时不会打开弹出窗口。
【问题讨论】:
标签: java gwt spring-boot vaadin vaadin4spring