I have recently started to use UiBinder as a way to define the UI.  I
have previously defined my UI using either just Java code to build
panels and widgets or by (ab)using setInnerHTML.

I have never come across runtime exceptions when creating widgets
until using UiBinder. My UI will now throw exceptions regularly,
although not consistently, nevertheless leading me to a situation
where I have to wrap every widget creation code in try/catch to
prevent the Javascript interpreter from falling over.

The error I see is always this:

(TypeError): Result of expression 'domId0Element' [null] is not an
object.

which is part of the generated Javascript that is used to represent
createAndBindUi()

Is this a bug?  Should I resign myself to using try/catch?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to