• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DWR vs. GWT

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe that DWR is similar to Google's GWT in that you are compiling Java classes into JavaScript objects. Is that correct?

Some other questions:

Does DWR integrate well into a Maven project?

GWT is pretty much limited to Java 1.4 last time I checked. Can you use DWR with Java 5 and 6 (generics, in particular).
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've only been playing with DWR for a couple of days, but what I like is how DWR allows you to send objects' data back and forth, which strikes me as very similar to using GWT-RPC to send objects between the client and server.

Regards,
Brian
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does marshalling/unmarshalling happen.Is XMl used ?
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They really aren't similar except in some rudimentary way.

GWT works by taking Java code and COMPILING it into Javascript/HTML/CSS. DWR dynamically marshalls Java objects to Javascript objects (and vice-versa).

DWR is concerned strictly with how you call methods of Java objects running on the server from Javascript. GWT is concerned with creating entire web-based applications in Swing-like Java code.

You're right, there's conversion of Java objects to Javascript objects in both cases, but they're very different technically and even more so conceptually.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To be more precise, can it then be said that the GWT-RPC mechanism part of GWT and DWR are very similar?

Scott Langley

Originally posted by Frank Zammetti:
They really aren't similar except in some rudimentary way.

GWT works by taking Java code and COMPILING it into Javascript/HTML/CSS. DWR dynamically marshalls Java objects to Javascript objects (and vice-versa).

DWR is concerned strictly with how you call methods of Java objects running on the server from Javascript. GWT is concerned with creating entire web-based applications in Swing-like Java code.

You're right, there's conversion of Java objects to Javascript objects in both cases, but they're very different technically and even more so conceptually.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic