vaadin6

handleURI for http://AAA.BBB.CCC.DDD:8080/myapp/ uri: '' returns ambigious result (Vaadin 6)

折月煮酒 提交于 2019-12-25 16:28:33
问题 In my Vaadin 6 application I sometimes get the following error: SEVERE: Terminal error: java.lang.RuntimeException: handleURI for http://AAA.BBB.CCC.DDD:8080/myapp/ uri: '' returns ambigious result. at com.vaadin.ui.Window.handleURI(Window.java:432) at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleURI(AbstractCommunicationManager.java:2291) at com.vaadin.terminal.gwt.server.CommunicationManager.handleURI(CommunicationManager.java:370) at com.vaadin.terminal.gwt.server

How to get the time of Computer and not server Java vaadin

十年热恋 提交于 2019-12-24 07:08:42
问题 Hey how to get the time of the computer and not the server using vaadin because getDate return to me the time of the server but i want the client computer time ?? 回答1: Vaadin has a class called WebBrowser that provides useful information about the client (browser): You can access the current WebBrowser instance for example as follows: public class MyApplication extends Application { @Override public void init() { setMainWindow(new Window()); ApplicationContext context = this.getContext(); if