Hi guys,
I have a custom widget which throws a NullPointerException when I
attempt to add it to a layout panel with GWT Designer. After some
digging, I realized its because my custom widget has some code that
tries to contact my server and this code should not be executed when
instantiated by GWT Designer. So I wrapped the code within an
isDesignTime check as described at this webpage:
http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/enhanced_compilation.html
However, the code in question still gets executed when I add the
custom widget to a layout panel in the designer. What am I doing
wrong?