I'm new to vaadin, and I managed somehow to get an app up and running. Now I have an help.htm html file containing tips about how to use the app. I've put the help.htm in my project WEB directory to be able to access it in vaadin context. I've tried to access it this way:
String str = "file:/" + "/" + application.getContext().getBaseDirectory() + "/help.htm";
URL url = new URL(str);
Embedded browser = new Embedded("Help", new ExternalResource(url));
browser.setType(Embedded.TYPE_BROWSER);
tabsheet.addComponent(browser);
I've tried debugging, copied and past the content of str variable in my web browser I can access the file, and the browser display it correctly. I've also tried with FileResource & ClassResource. Also When I replace the String with http://www.somewebpage.com/ it works, but does not with the above code. How to achieve that?