Mario41
(Mário Korčák)
February 18, 2013, 5:43pm
1
I’ve got something like this:
Page page = MainUI.this.getPage();
page.addBrowserWindowResizeListener(new BrowserWindowResizeListener() {
@Override
public void browserWindowResized(BrowserWindowResizeEvent event) {
System.out.println("resized");
}
});
Effect: i resize browser and nothing happens. After i do something (click, or drag&drop something) the “resized” is print in console.
Is this really correct or bug. Because i except when i resize browser some event will fire and listener will get this information.
Thx. for answer
Artur
(Artur Signell)
February 18, 2013, 6:13pm
2
Mario41
(Mário Korčák)
February 18, 2013, 7:44pm
3
Thx for answering… but one problem generate another one.
When i try to add refresher to VerticalLayout
verticalLayout.addComponent(refresher); i need to cast it to (Component) and this invoke this error: com.github.wolfie.refresher.Refresher cannot be cast to com.vaadin.ui.Component
Henri2
(Henri Sara)
February 19, 2013, 7:22am
4
You seem to be using the Vaadin 6 version of the Refresher add-on with Vaadin 7.
Note that the new version is not a component at all but an Extension, and is not added to any layout - check its documentation.
Mario41
(Mário Korčák)
February 19, 2013, 5:13pm
5
Oh i wish i would be so stupid
But i’m using Vaadin 7 with Refresher version 1.2.1.7 (Refresher extends AbstractExtension).
Henri2
(Henri Sara)
February 20, 2013, 7:49am
6
So what happens if you add it using ui.addExtension(refresher)? It should not be in any layout anymore.
The example in the highlight on the
directory page
should work.
Mario41
(Mário Korčák)
February 21, 2013, 2:14pm
7
I was looking into chat article in right panel not into highlight.
Thank you very much, and to all vaadin team members - your doing very good job. One more time thx for help.