Hi everybody,
I try to build an application using GWT-Platform and SmartGWT.
The application has a nested view where only the mainpart gets new content (after calling a #place).
Simplified: There is a VLayout with HLayout (menu bar with some buttons) and another VLayout for the content (the content-slot).
The VLayout for the content changes if another place gets called (e.g. #page2).
The code for the view of page2 is:
My problem:
When the place "page2" gets called for the first time everything gets loaded correctly (wikipedia shows up in my application).
But if I navigate on the site which is shown in the htmlPane (in this case wikipedia) and the Browser window gets resized (+/-) the htmlPane reloads the content and jumps back to the entrypage of wikipedia.
In my future application that shouldn't happen because in the loaded html-page there should be made important settings which shouldn't get thrown away if the user "touches the browser".
I'm using SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
I've tested it with Google Chrome, IE, and FF.
Can somebody tell me why my page behaves like this?
Is there a solution for my problem?
I've read that the use of RootPanel should be avoided and draw() should be used... but I think GWTP does that for me.
Regards
I try to build an application using GWT-Platform and SmartGWT.
The application has a nested view where only the mainpart gets new content (after calling a #place).
Simplified: There is a VLayout with HLayout (menu bar with some buttons) and another VLayout for the content (the content-slot).
The VLayout for the content changes if another place gets called (e.g. #page2).
The code for the view of page2 is:
Code:
public class Page2View extends ViewImpl implements
Page2Presenter.MyView {
private VLayout panel;
private HTMLPane htmlPane2;
@Inject
public page2View() {
GWT.log("init page2-view", null);
panel = new VLayout();
panel.setRedrawOnResize(false);
// initialize the HighlightsView layout container
panel.setStyleName("Page2");
htmlPane2 = new HTMLPane();
htmlPane2.setShowEdges(true);
htmlPane2.setContentsURL("http://www.wikipedia.com/");
htmlPane2.setContentsType(ContentsType.PAGE);
htmlPane2.setRedrawOnResize(false);
panel.setRedrawOnResize(false);
panel.addMember(htmlPane2);
}
@Override
public Widget asWidget() {
return panel;
}
}
My problem:
When the place "page2" gets called for the first time everything gets loaded correctly (wikipedia shows up in my application).
But if I navigate on the site which is shown in the htmlPane (in this case wikipedia) and the Browser window gets resized (+/-) the htmlPane reloads the content and jumps back to the entrypage of wikipedia.
In my future application that shouldn't happen because in the loaded html-page there should be made important settings which shouldn't get thrown away if the user "touches the browser".
I'm using SmartClient Version: 8.2/LGPL Development Only (built 2011-12-05)
I've tested it with Google Chrome, IE, and FF.
Can somebody tell me why my page behaves like this?
Is there a solution for my problem?
I've read that the use of RootPanel should be avoided and draw() should be used... but I think GWTP does that for me.
Regards
Comment