Hi everybody
I know in vaadin we can redirect to another window by getUrl(),
When i use vaadin portlet in liferay , i have use getUrl() but it redirect to 1 page in vaadin but not in liferay
if i configure it
com.vaadin.terminal.gwt.server.ApplicationPortlet2
it has error
Caused by: java.lang.RuntimeException: Internal problem getting window URL, please report
public class UrlwindowApplication extends Application {
public void init() {
final Window main = new Window ("My Test Application");
setMainWindow(main);
final Window mywindow = new Window("Second Window");
mywindow.setName("mywindow");
mywindow.addComponent(new Label("Has content."));
addWindow(mywindow);
main.addComponent(new Button("Click to open new window",
new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
// Open the window.
System.out.println(mywindow.getURL());
main.open(new ExternalResource(mywindow.getURL()));
}}));
}}
i have configure file web.xml,portlet.xml,liferay-portlet.xml