• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT in Action:Two questions

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1 Can it replace Java Applet totally? I'm now working on a Java Applet project, compare with AJAX, what are the advantages and disadvantages?

2 Will GWT be used by more and more people to build AJAX project? Or like GUI builder, although it can make GUI work easier, but there are still lots of people write code by hand.

Thanks.
 
Glenn Murray
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Louis Wang:
1 Can it replace Java Applet totally? I'm now working on a Java Applet project, compare with AJAX, what are the advantages and disadvantages?


GWT output is Javascript, so it is limited by that language's capabilities. The end result is a web page. On the other hand, it will run in most all browsers without a JRE.

An applet is not a web page; it runs in a JRE. In particular a
signed applet can do many more client side tasks.


2 Will GWT be used by more and more people to build AJAX project? Or like GUI builder, although it can make GUI work easier, but there are still lots of people write code by hand.


If someone said they could predict the future, would you believe them?

Cheers,
Glenn
[ June 25, 2007: Message edited by: Glenn Murray ]
 
John Mikhail
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated, you're limited by the language. GWT client side code only currently supports jdk 1.4 and even that is very limited in the JRE emulation. Check out this link that shows you the javadocs for the classes that are supported (http://code.google.com/webtoolkit/documentation/jre.html). Very limited indeed.

But with that said, I haven't had any problems writing a fairly decent size GWT application for our project. Pretty much if I can't do anything on the client side because of the limited emulation, I wrap the call in an RPC invocation and do it on the server side, which is full jdk 1.5 (or even 1.6) supported.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic