• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

what adventage have GWT compare to jQuery?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i'm using jQuery and i partner told me about WGT. What is the adventure that i have using GWT compare to using jQuery. I'm actually programming in Java so i've some knowlegde about it.

my intensition is used it in the company that i'm working.

Thank in advence.

Matias.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GWT Advantages

No JavaScript syntax errors
- Use a reliable, strongly-typed language (Java) for development and debugging
- No JavaScript programming at all!
Can use complex Java on the client
- Turned into JavaScript, but you still use String, array, Math class, ArrayList, HashMap, custom classes, etc.
- Full IDE-based Java support for development/debugging (GWT builds Eclipse or MyEclipse projects automatically)
Can send complex Java types to and from the server
- Data gets serialized across network
Standalone test environment
- Can test within MyEclipse without installing a server
Support by major company
- From the company that helped to popularize Ajax in the first place. But project is free, open-source, and in no way tied to Google products or services.
- Company won't go away like perhaps with AjaxTags


GWT Disadvantages

Big learning curve
- Java developers can deploy with AjaxTags (or other JSP tag libraries that wrap Ajax functionality) in just a few minutes, whereas it takes much longer to get anything running with GWT.
Cumbersome deployment
- Clumsy and poorly documented process to deploy on a regular Java-based Web server.
Nonstandard approach to integrate JavaScript
- You never put direct JavaScript in your HTML. Instead, you use JSNI to wrap JavaScript in Java. Very powerful in the long run, but hard to get used to at first.
Only for Java developers
- Most Ajax environments do JavaScript on the client and have a choice for the server. GWT is based entirely around Java.
Unusual approach
- Fundamentally different strategy than all other Ajax environments makes evaluation and management buyoff harder
 
ahmed dohar
Greenhorn
Posts: 26
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't say that GWT don't employ JavaScript, sometimes you have to write JavaScript code (if you want to use other JavaScript libraries).
GWT shines in Java/Swing shops, developers who don't have experience in web development.
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ahmed dohar wrote:
- Most Ajax environments do JavaScript on the client and have a choice for the server. GWT is based entirely around Java.



I was under the impression that you can use any backend you want; even none, if you do not need to communicate with the server. Sure, if you use the GWT RPC service some things look easier (sending complex Java objects back and forth) but you could communicate with e.g. JSON also, losing some comfort.

(The comfort may even lead to bad ideas, like sending the entities from DB directly to the client... )
 
author
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

matias Yaryura wrote:Hi all,

i'm using jQuery and i partner told me about WGT. What is the adventure that i have using GWT compare to using jQuery. I'm actually programming in Java so i've some knowlegde about it.

my intensition is used it in the company that i'm working.



Hi!

Java is, overall, a far better language than JavaScript. You can --if you are very sure you really need it!-- add jQuery to a GWT application, but you'll probably realize you can do with Java alone.

Hope this helps!
 
Federico Kereki
author
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hauke Ingmar Schmidt wrote:

ahmed dohar wrote:
- Most Ajax environments do JavaScript on the client and have a choice for the server. GWT is based entirely around Java.



I was under the impression that you can use any backend you want; even none, if you do not need to communicate with the server. Sure, if you use the GWT RPC service some things look easier (sending complex Java objects back and forth) but you could communicate with e.g. JSON also, losing some comfort.

(The comfort may even lead to bad ideas, like sending the entities from DB directly to the client... )



Hi!

In some applications we've developed, the backend is based on PHP services, and we send XML and JSON back and forth.

Hope this helps!
 
The moth suit and wings road is much more exciting than taxes. Or this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic