Skip to content
This repository has been archived by the owner on Nov 21, 2018. It is now read-only.

MainPage should extend Widget instead of Composite #3

Open
halkosajtarevic opened this issue Nov 8, 2016 · 2 comments
Open

MainPage should extend Widget instead of Composite #3

halkosajtarevic opened this issue Nov 8, 2016 · 2 comments

Comments

@halkosajtarevic
Copy link

In the MainPage.java you are extending from Composite although you are using setElement instead of initWidget - this causes an exception at runtime.

@zak905
Copy link
Member

zak905 commented Nov 8, 2016

Thanks for your remark. it's fixed now: edb3d24
For your information, there is no need to extend widget, the issue happens when initWidget() is not called with Composite. I just changed the type parameter of uiBinder from Element to Widget, and also changed the root element of the template from div to HTMLPanel.

@halkosajtarevic
Copy link
Author

I know - but if you extend Widget, you don't have to call "initWidget()" - both ways are correct :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants