| Author |
how is it useful for programmers?
|
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
hi author, I copy this words from http://www.packtpub.com/google-web-toolkit-GWT-Java-AJAX/book in detail about this tool kit. "You write your front end in the Java programming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML." can you please more enlighten on that.. how it change the java code into javascript? in what manner is it useful for the programmer? [ April 03, 2007: Message edited by: Saif uddin ]
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Prabhakar Chaganti
author
Ranch Hand
Joined: Nov 30, 2004
Posts: 50
|
|
|
GWT uses a Java to Javascript compiler. So you write your code in Java and the compiler will convert it to javascript code that runs in your browser.
|
Packt Author Page (http://www.packtpub.com/author_view_profile/id/120)
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
why we need this type of compiler..? I mean as Ajax is a set of technologies. and javascript is also included in the list of this? so developer must have knowledge of javascript to playing around with AJax. [ April 03, 2007: Message edited by: Saif uddin ]
|
 |
Prabhakar Chaganti
author
Ranch Hand
Joined: Nov 30, 2004
Posts: 50
|
|
The idea behind GWT is to shield the developer from having to play around with javascript as creating browser independent javascript is non trivial, error prone and difficult to debug. This page gives you a good overview of GWT features: http://code.google.com/webtoolkit/overview.html thanks prabhakar
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
Thanks for your reply.. now I going to read it and will be back after Coffee break!
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26138
|
|
Originally posted by Saif uddin: so developer must have knowledge of javascript to playing around with AJax.
Yes. GWT shields you from having to program in JavaScript. You still have to understand the underlying parts (event handling) for things to make sense. It's like code generation in IDEs or XDoclet. You have to understand how a session bean works even if you are unlikely to write one by hand.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Muhammad Saifuddin
Ranch Hand
Joined: Dec 06, 2005
Posts: 1318
|
|
Originally posted by Jeanne Boyarsky: It's like code generation in IDEs or XDoclet. You have to understand how a session bean works even if you are unlikely to write one by hand.
Yeah it make more sense to me.. how do you know that I am working on Code Generator?  [ April 04, 2007: Message edited by: Saif uddin ]
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14669
|
|
I don't think that Jeanne thought that you were working on code generators Only telling that you have to know what you're doing, like in XDoclet.
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: how is it useful for programmers?
|
|
|