• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

what adventage have GWT compare to jQuery?

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
https://coderanch.com/t/121369/GWT/comparison-GWT-jQuery
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic