I need a help, I am designing a application using GWT as a front end. So I am writing a wrapper class as application main window, the condition is if I create this class inside the client package, it works fine but If I create the file outside client package it is not loading. The exception I am getting is :
[ERROR] [questwebtoolweb] - Line 27: No source code is available for type com.ibm.projects.qwt.client.ui.ApplicationDefaultWindow; did you forget to inherit a required module?
if you need I can show you the code of my application. But that code is working fine if I put the stuff in client module.
I would really appriciate your help.
In GWT it is important to follow the special package structure conventions.
Each GWT module can have a
clientsubpackage for client side code, aserverpackage for server side code like RPC servlets and a subfolderpublicfor static files like CSS files or images.Read the GWT documentation article Organize Projects for details and how to redefine these package names.
So the essence is, if your class is not under the client package, the GWT compiler doesn’t compile it to JavaScript for client side code.