Closed grebesche closed 9 years ago
Could you share more code, I mean your initial index.html and the onModuleLoad code.
Here is my initial index.html
<html>
<head>
<title>Bees GWT App</title>
<script type="text/javascript" language="javascript" src="BeesGwt/BeesGwt.nocache.js"></script>
</head>
<body>
</body>
</html>
And my onModuleLoad
public void onModuleLoad() {
PaperShadow paperShadow = new PaperShadow();
paperShadow.setZ(2);
CoreToolbar coreToolbar = new CoreToolbar("My tool bar");
paperShadow.add(coreToolbar);
PaperButton button = new PaperButton("button !");
button.setRaised(true);
// final CoreDrawerPanel coreDrawerPanel = new CoreDrawerPanel();
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
}
});
RootPanel.get().add(paperShadow);
RootPanel.get().add(button);
RootPanel.get().add(new Label("Coucou"));
}
So if I uncomment the CoreDrawerPanel
line (even without adding it to the DOM), nothing get displayed and in the JS console I have:
Uncaught java.lang.ClassCastException
dynamicCast_0_g$
getPolymerElement_0_g$
CoreDrawerPanel_3_g$
CoreDrawerPanel_2_g$
CoreDrawerPanel_1_g$
onModuleLoad_3_g$
init_2_g$
initializeModules_0_g$
apply_0_g$
entry0_0_g$
(anonymous function)
gwtOnLoad_0_g$
(anonymous function)
Am I missing something? Thanks
I see that the CoreDrawerPanel exist, but is not in the demo. Is it a work in progress? I'm using
com.vaadin.components:gwt-polymer-elements:1.0-SNAPSHOT
I tried to use it, but just including this line:
into
onModuleLoad
prevent any other widget to be added to the DOM. Before:After: