I'm messing around with GWT, and as I
test deeper waters, I'm seeing an exception about not calling initWidget. I've seen that Ryan Dewsbury in his book Google Web Toolkit Applications occasionally calls this method, but I'm not sure of the reasoning.
When is it necessary to call the initWidget method, and is it always a parent calling it on a child widget or something?
java.lang.AssertionError: This UIObject's element is not set; you may be missing a call to either Composite.initWidget() or UIObject.setElement()
at com.google.gwt.user.client.ui.UIObject.getElement(UIObject.java:512)
Update:
So, I had a Composite panel going on my EntryPoint. The composite panel had a VerticalPanel and a Grid widget. Apparently, I needed to call initWidget on the first widget that was going to act as a container on the page, which was the Grid. That then made my error go away.
-Cameron McKenzie