Actually, GWT doesn't impose any requirements as to where you put your
source files, it just defaults to "client".  You just need to make
sure you have a GWT module.xml that references the specific
directories containing the files you want to include for the client
that the module represents.  Something like:

    <source path="mymodel"/>  <!-- Say in the com.mycompany.mymodel
package -->

Then you just compile the files in that directory as normal to get the
class files for the server and you compile the files in that directory
using the GWT compiler to get the Javascript files.  The bottom line
is that the exact same .java file can be compiled twice and used on
both the server and the client.  There is no need for separate classes
or separate files for the server and the client.
--~--~---------~--~----~------------~-------~--~----~
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