I was trying to migrate a project, and had some issues searching for 'things not to do' or 'common problems migrating to GWT Designer' and the like.
So, would like to start a quick-list of common problems. I have only had one so far, but it was days to track down --
"Error Loading Modules" - Process to determine inherited module with problem.
1) Create a 'cleanroom' module with an entrypoint and simple UI. Confirm the Designer still works fine.
2) From your problem project that may have multiple inherited modules from *.gwt.xml, copy one-by-one the modules and try your simple entry point until the Designer in your 'cleanroom' project has the "Error Loading Modules" problem. This has identified one of the problem module(s).
"Error Loading Modules" - do not do list:
*Direct shortcircuting - do not do the following:
- Code: Select all
If (true){
return;
}
Widget x = new Widget().....
Instead, if you really must do shortcircuts instead of other approaches, use a
- Code: Select all
boolean shortcircut = true; if(shortcircut){
-D