File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes GWT and the fly likes GWT in Action:Two questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT in Action:Two questions" Watch "GWT in Action:Two questions" New topic
Author

GWT in Action:Two questions

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 433
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.


To be or not to be. It's a question.
Glenn Murray
Ranch Hand

Joined: Dec 07, 2001
Posts: 74
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 ]

Glenn Murray
Author of Yo Soy Una Vaca De Hoy
John Mikhail
Greenhorn

Joined: Jun 03, 2005
Posts: 20
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GWT in Action:Two questions