There's any way to dinamically attach SmartGWT components (ex DynamicForm, Label..) to a dinamicaly loaded HTML content?
The code below works, but the smartGWT components disappears when I resize the page, or in general when the page redraw for any reason.
test.html
somewhere in the app
Or there's maybe another way to achieve the same result?
The code below works, but the smartGWT components disappears when I resize the page, or in general when the page redraw for any reason.
test.html
Code:
<div style="border: 2px solid red;"> hello <div id="myAppId" style="border: 1px solid black; width:300px; height:200px"></div> </div>
Code:
HTMLPane pane = new HTMLPane(); pane.setContentsType(ContentsType.FRAGMENT); pane.setContentsURL("test.html"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { RootPanel.get("myAppId").add(new Label("test")); } }
Comment