• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

how is it useful for programmers?

 
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply..

now I going to read it and will be back after Coffee break!
 
author & internet detective
Posts: 41656
883
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic