- Client-side (Web browser), this is where you transpile the Java2JavaScript. The result is always JS / HTML / CSS. You use here gwt-dev.jar, gwt-user.jar but at the end it doesn't play any role since you won't "deploy" them, only pure JS / HTML / CSS.
- Server-side (Web container / Servlet container), this is your server-side business logic / database. You could have gwt-servlet.jar in this part if you are using GWT server-side functionalities like GWT-RPC, GWT-Logging.
- API / Shared, this is the Java class where you can use from both side like Java Interface, DTO, Validator, etc.
The dependencies should always be like this:
- client-side project depends on API / shared
- server-side project depends on API / shared
- Never let your client-side project depends on the server-side project also another way around
- Only if you want to, you could "copy" the result of JS / HTML / CSS to your server-side project, so your web container could deliver the JS / CSS / HTML to the web browser... But no dependencies.
Hope this helps,
Lofi
vas...@gmail.com schrieb am Mittwoch, 23. Dezember 2020 um 08:51:16 UTC+1:
Hi,I think gwt-dev.jar is where the gwt compiler lives. So you need this jar for compilation.For deployment:
- You don't need it for client side only projects
- 99% you don't even need it for RPC based servlets
Hope that helps.VassilisOn Tue, Dec 22, 2020 at 8:17 PM Elhanan <elh.m...@gmail.com> wrote:hi..assuming my code will only run in client mode (i.e won't run in any server, or any servlet container) is it save to exclude it from maven dependencies during build? mark it as provided ?according to this it seems i can(it's never meant to run under a servlet container)--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/f7b77575-cfce-4f13-b081-825bf8691072n%40googlegroups.com.
--Vassilis Virvilis
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/4e5032f3-3b48-45a4-b6dc-f37ffa1488can%40googlegroups.com.
No comments:
Post a Comment