BrowserWindowOpener opens the wrong (context)path

Hi

I’m using the BrowserWindowOpener together with Vaadin 7.4.5 in combination with vaadin-spring-boot (1.0.0.Beta3 and various vaadin-spring-addon’s at version 0.0.6-SNAPSHOT).

I just upgraded from the vaadin-spring extensions 0.0.4-SNAPSHOT to vaadin-spring-boot (1.0.0.Beta3) and at the same time upgraded from Vaadin 7.3.x to 7.4.5.
With the old libraries and old Vaadin version the same BrowserWindowOpener code worked nicely, but after the upgrade it no longer works.

The code is pretty simple:

BrowserWindowOpener opener = new BrowserWindowOpener(PrintUI.class);
opener.setFeatures("height=600,width=600");
Button print = new Button(i18n.get("click_to_print"));
opener.extend(print);

@SpringUI(path = "/print") public static class PrintUI extends UI { @Override protected void init(VaadinRequest request) { ... } } The application runs as normal on localhost:8080 with root context path: e.g.
http://localhost:8080/#!MyView

When I click the print button the follow Url is opened:

localhost:8080/vaadinServlet/popup/PrintUI

and the following Javascript alert is displayed:


http://localhost:8080
Failed to load the bootstrap javascript: ./…/VAADIN/vaadinBootstrap.js?v=7.4.5



Does anyone else experience the same problem with Vaadin 7.4.5 (with or without Spring Boot enablement)?

Hi

I am facing the same problem, did you got the resolution?

Thanks!

Sadly not. I guess I need to report it as a bug…

I just tried using the same code with vanilla Vaadin 7.4.5 and 7.4.6 and the problem doesn’t occur there, so the problem must be related to vaadin-spring-boot.

I tried creating a new spring-boot enabled vaadin project using http://start.spring.io and its dependencies were different.
So I ended up removing

com.vaadin vaadin-spring 1.0.0.beta3
com.vaadin vaadin-spring-boot 1.0.0.beta3

and replace it with (last dependency isn’t super necessary for this to work):

com.vaadin
vaadin-spring-boot-starter
1.0.0.beta3
org.springframework.boot
spring-boot-starter-test
test

and now it works :slight_smile:
/Jeppe