Hello,
I’m trying to update my application to vaadin 7 and I’m not sure what’s the best way to follow regarding this:
I vaadin 6, in order to show new content to user, I did:
Button b = new Button();
b.setStyleName(BaseTheme.BUTTON_LINK);
final Window newsubscriber = new Window("new window");
addWindow(newsubscriber);
b.addListener(new ClickListener() {
public void buttonClick(com.vaadin.ui.Button.ClickEvent ev) {
final Layout formInscricao = new SubscriptionFormLayout(info);
newsubscriber.setContent(formInscricao);
getMainWindow().open(
new ExternalResource(newsubscriber.getURL()),
"_self");
}
});
Perhaps this is not the best way even in vaadin 6.
But now I have a chance to make it really better.
How do I do such similiar scenario in vaadin 7 since as far as I can tell Window no longer has url associated?
Carlos