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
-~----------~----~----~----~------~----~------~--~---

Reply via email to