Hi Alik, Thanks for setting this up! Here's a tip to get Eclipse to work cleanly with your layout: - Click on your "Greeting" project, choose "Properties", go to "Java Build Path", "Source" tab, and "Link Source". Choose the src folder for e.g. GreetingClient and name it something like src-client. Repeat for GreetingServer and GreetingShared. - Then, while in the "Greeting" project properties, go to "Google" on the side bar and "Web Toolkit". Make sure the only Entry point module is the GreetingClient (not the GreetingShared)
This should let you run hosted mode, do a GWT compile, and/or deploy to AppEngine from Eclipse. jason On Sat, Sep 26, 2009 at 7:56 PM, kilaka <[email protected]> wrote: > > Finally succeeded. > Don't know what happened before, but now it works - through ant > (eclipse's build in compiling isn't working). > > I created a 4 project development environment: > - GreetingShared? > Contains the shared interfaces which the client invokes and the > server implements. > - GreetingServer? > Contains server code, like persistence and logic. > - GreetingClient? > Contains GWT client code thay compiles to JS. > - Greeting > Contains the deployment folders - the war. > > The 4 projects are located in: > http://code.google.com/p/gwt-client-server-dev-env/ > > I hope to make it a development environment template for client-server > development. > - Need to get the project name and package as parameters > - Need to see how to add persistence annotation to classes (the UI > should not see them) > - Perhaps Move html and css to client project and Move server files > (jdo) files to the server project? Perhaps keep configuration files in > the deployment project? > - etc. (more client-server separation) > > --Alik > > > > On Sep 23, 10:56 am, kilaka <[email protected]> wrote: > > Hi all, > > > > GWT enables. among other things, the use of the same classes inclient > > andservercode.Clientcode is compiled to JavaScript andservercode to Java > byte- > > code. > > > > My problem is: > > If a GWT application is developed in one eclipse project - bothclient > > andserver,clientcode can directly invokeservercode and vice versa. > > The recommendation to help from making such a mistake is to use a > > package convention: > > - com.same.clientforclientcode and > > - com.sample.serverforservercode > > > > This is not sufficient enough, for such mistake may still happen - > > especially when the eclipse adds imports automatically to the head of > > file in the imports section which is folded by default, causing you > > not to notice the package name. > > > > Also, there are classes that are shared by both theserverand theclient, > like the Greetings interface(clientuses andserver > > implements). Where does it goes? > > > > I tried creating a working development environment with 3 projects: > > -Client > > -Server > > - Shared > > > > It was very complicated and needed a symbolic link from Shared toclient- > for the compilation to JavaScript. > > > > Does anyone feels the need as I am? > > Did anyone create such a "hello world" development environment? > > > > Thanks, > > Alik. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
