aspose file tools*
The moose likes GWT and the fly likes what adventage have GWT compare to jQuery? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "what adventage have GWT compare to jQuery?" Watch "what adventage have GWT compare to jQuery?" New topic
Author

what adventage have GWT compare to jQuery?

matias Yaryura
Greenhorn

Joined: Sep 15, 2008
Posts: 20
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.
ahmed dohar
Greenhorn

Joined: Oct 06, 2009
Posts: 26
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

Joined: Oct 06, 2009
Posts: 26
http://www.coderanch.com/t/121369/GWT/comparison-GWT-jQuery
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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.
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
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... )
Federico Kereki
author
Ranch Hand

Joined: Aug 27, 2010
Posts: 31
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!

Great fan of Open Source, Linux, and web development with GWT; all of these come together for my ESSENTIAL GWT book!
Federico Kereki
author
Ranch Hand

Joined: Aug 27, 2010
Posts: 31
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what adventage have GWT compare to jQuery?