Slashdot Mirror


Google Releases AJAX Framework

maquina writes "Google released a new AJAX framework based on Java. From Google's mouth: "Google Web Toolkit (GWT) is a Java software development framework that makes writing AJAX applications like Google Maps and Gmail easy for developers who don't speak browser quirks as a second language." This impressive framework promises to make AJAX available to the masses and is one more step towards Google becoming the de facto Internet platform provider."

72 of 327 comments (clear)

  1. Google: by Trigun · · Score: 5, Interesting

    Your source of, vangaurd of and now creator of all your information.

  2. The best feature of this toolkit by xbrownx · · Score: 2, Interesting

    ...is by far and above the fact that you are coding your website in Java, using their API and SWT-like objects, and the Javascript/Ajax is then generated from your classes.

    I think Google is mostly responsible for launching the AJAX trend, and now they're moving in a brand new direction? Beautiful.

    Oh and they even distributed half of the source code for the project in the JAR files.

    1. Re:The best feature of this toolkit by Ingolfke · · Score: 3, Interesting

      Just because the AJAX code is not hand coded doesn't mean Google is moving in a new direction. In fact they're moving forward more agressively in the same direction, and are just releasing tools to help everyone go the same way (especially the Google way).

    2. Re:The best feature of this toolkit by seizer · · Score: 5, Informative

      It's not quite a "brand new direction" - Microsoft's Atlas product has been offering something along these lines for a while now (albeit still as a beta). You lay out controls visually in Visual Studio (or Express), and control them programmatically from .NET. It takes care of rendering them down to HTML + Javascript, and it's pretty much cross platform friendly.

    3. Re:The best feature of this toolkit by Anonymous Coward · · Score: 5, Interesting

      I personally find the way it handles remote prodecure calls to the server the most interesting. Just define a serializable java class, you say? And GWT handles the rest, you say? Sign me up!

      This is sexy stuff, people. :-)

    4. Re:The best feature of this toolkit by Anonymous Coward · · Score: 5, Informative

      "I think Google is mostly responsible for launching the AJAX trend"
       
      Er, nope. Hard as it is to believe, Microsoft were there first with the awesome Outlook Web Access which mimics Outlook, on a web page really, really well. This used their XMLHTTP ActiveX object which is also used extensively in Windows Update.
       
      The rest happened from there really. Google is probably the best known current implementer of AJAX, but good as they are I certainly wouldn't say they launched it... and I certainly wish world + dog would stop releasing AJAX frameworks!

    5. Re:The best feature of this toolkit by Bogtha · · Score: 4, Insightful

      Microsoft might have provided the first XMLHttpRequest implementation and used it first, but it was Google that made it popular. Before Google Suggest (and later GMail) caught everybody's attention, it languished relatively unknown to most developers for years. Now you can't get away from it.

      Sure, browser compatibility played a large part too, but even after Mozilla implemented XMLHttpRequest, I didn't see many people talking about it until Google started using it. So Microsoft might have launched XMLHttpRequest, but it was Google that launched the trend, which is what xbrownx said.

      --
      Bogtha Bogtha Bogtha
    6. Re:The best feature of this toolkit by badfish99 · · Score: 5, Informative
      Here's a much better implementation of the same idea that's been available for some time now: http://zk1.sourceforge.net/

      It's not "beta" like this half-baked "me-too" from google, and it's open-source.Also commercial support is available it you want to pay for it.

    7. Re:The best feature of this toolkit by FecesFlingingRhesus · · Score: 3, Informative



      To be fair I think the progression to AJAX was an evolution of which the last breaking point was web service and the ability to easily (I use that term lightly) transmit simple objects across the wire. When MS built their web outlook they where passing raw XML back and forth across the wire, with all the nastiness that comes along with it. With the push towards web services, and the XmlHttpRequest laying in obscurity it was only natural that it someone would (re)figure out the coupling of these technologies to become AJAX for more info on who contributed what look here

    8. Re:The best feature of this toolkit by advocate_one · · Score: 2, Insightful
      You lay out controls visually in Visual Studio (or Express), and control them programmatically from .NET. It takes care of rendering them down to HTML + Javascript, and it's pretty much cross platform friendly.

      you must have a different definition of cross-platform friendly to me then... I don't want to use ms windows in any form at all, so I can't develop this Microsoft Atlas stuff on my platform of choice.

      --
      Donald 'Duck' Dunn: We had a band powerful enough to turn goat piss into gasoline.
    9. Re:The best feature of this toolkit by badfish99 · · Score: 2, Insightful
      The problem in this area is that the whole Javascript/AJAX technology is such a ghastly mess: partly due to the web just not being designed to work that way, and partly due to the need to work around the various "features" in various browsers.

      The effect of this is that, if AJAX could only be used by people who understood all the issues of the underlying implementation, then it would hardly get used at all. Toolkits like this will allow 100% of developers to use 90% of the technology, instead of 5% of developers using 100% of the technology.

    10. Re:The best feature of this toolkit by samyem · · Score: 2, Interesting

      Been there done that: http://zk1.sourceforge.net/
      Opensource and free.. take that Google...

    11. Re:The best feature of this toolkit by nostriluu · · Score: 2, Informative

      Besides XMLHttpRequest, there is a way to transfer data between Java and Javascript. An embedded Java applet can communicate with the server which passes values to Javascript. I was using this technique back in ~ 1997 to populate a select box based on input from an input box. I'm in a rush so can't track references to this down, but it should be considered in this history - the AJAX concept has been around for a while. Anyway, I'm only mentioning this because many people don't know about it and the original article is about Java. :)

  3. I knew this would eventually happen. by thealsir · · Score: 3, Insightful

    Developers are tired of having to reinvent the wheel every time with dynamic components on web pages, and things like PEAR do not have all their component lib. in one centralized location like this. A developer framework for AJAX is definitely a revolutionary. It marks the move toward using web-based platforms for a greater and greater percentage of common computing functions.

    --
    Do not downmod posts "overrated" simply because you disagree with them.
  4. Re:Once again, Yahoo! is overlooked by segfault_0 · · Score: 4, Insightful

    That appears to be precanned Javascript,etc. that alot of people have done before. This is Java programming and debugging straight to 100% browser compatible HTML and Javascript. The only group larger than the google fanboy club is the google is smarter than me and i hate them club.

    --

    I was crazy back when being crazy really meant something. (Charles Manson)
  5. I, for one... by ABoerma · · Score: 5, Funny

    ...welcome our new buzzword-compliant overlords. MFG, all I read these days is Google, Java and/or AJAX.

    1. Re:I, for one... by Ingolfke · · Score: 4, Insightful

      Yeah, lets bring back the good ole' days when Linx, Internet, world wide web, or microcomputer were the buzzwords of the day.

      You people are look old farts complaining about the kids and their music today. Sure there are buzzwords and there is hype, but there always is, so just deal with it.

  6. Yeah, right.. by schon · · Score: 5, Informative
    Yahoo has already done this

    No, they haven't - at least not unless you have some other information you're not sharing.

    From the Google site:
    You write your front end in the Java programming language, and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML.

    From the Yahoo link you provided:
    To use a specific component from the YUI Library, include the path to that library in a <script> tag within your web page.

    So, how is this the same thing?
  7. Re:Once again, Yahoo! is overlooked by Sulka · · Score: 4, Informative

    Nope, there's a big difference between these libraries.

    The Y! framework still requires you to write HTML and Javascript - they just make implementing DHTML effects + AJAX less painful.

    The Google framework removes the base need for HTML and Javascript authoring from the application development process entirely. Obviously you'll want to make the app look nice and need custom styling but in order to actually develop the functionality, zero HTML is needed.

    As a consequence you can use the Yahoo stuff with any backend implementation language (PHP, Java, whatever) while the Google framework is limited to strictly Java. I don't mind though. :)

    --
    "Although it is not true that all conservatives are stupid, it is true that most stupid people are conservative."
  8. Re:I have yet to figure out AJAX by DaoudaW · · Score: 5, Funny

    and my brain just keeps seeing GOOGLE AJAX WEB DEVELOPMENT

    Maybe we should just call it GAWD for short!

  9. The worst feature of this toolkit... by Bogtha · · Score: 5, Interesting

    ...is that it's a closed-source, binary-only executable. Download page:

    The GWT Java-to-JavaScript compiler and hosted web browser are shipped binary-only and subject to the license below.

    --
    Bogtha Bogtha Bogtha
  10. The license is restrictive.. mods prohibited by HighOrbit · · Score: 5, Informative

    Prohibited Actions

    Except for distributions for internal business and/or personal use to your employees or contractors in compliance with these Terms and Conditions, you may not distribute Google Web Toolkit Development Tools or any services or software associated with or derived from them, or modify, copy, license, or create derivative works from Google Web Toolkit Development Tools, unless you obtain Google's written permission in advance. If you wish to do any of the above, please contact us by emailing apis@google.com. You may not use the Google Web Toolkit Development Tools to develop or distribute products that violate the law or legal rights of third parties.


    No, I'm not looking a gift horse in the mouth and why does this matter? Because I happen to prefer PHP for web development (just a personal preference). It would be nice to be able to move the JavaScript components off from the Java framework into a PHP based framework. Well, apparantly you can't do that without special permission.

    BTW, the Yahoo UI Library is BSD licensed.

    1. Re:The license is restrictive.. mods prohibited by lilnobody · · Score: 2, Informative
      Prohibited Actions

      Except for distributions for internal business and/or personal use to your employees or contractors in compliance with these Terms and Conditions, you may not distribute Google Web Toolkit Development Tools or any services or software associated with or derived from them, or modify, copy, license, or create derivative works from Google Web Toolkit Development Tools, unless you obtain Google's written permission in advance. If you wish to do any of the above, please contact us by emailing apis@google.com. You may not use the Google Web Toolkit Development Tools to develop or distribute products that violate the law or legal rights of third parties.

      No, I'm not looking a gift horse in the mouth and why does this matter? Because I happen to prefer PHP for web development (just a personal preference). It would be nice to be able to move the JavaScript components off from the Java framework into a PHP based framework. Well, apparantly you can't do that without special permission.

      You're misunderstanding, although the legalize associated with the term 'derivative work' when talking about a development environment is aterribly obtuse. This says nothing about the generated code or anything you make with the tools, this is talking about the tools themselves. They are saying you can't redistribute the development environment itself, edit the DE and call it your own, edit the DE and sell it to someone, etc.

      Based on this paragraph alone (I haven't read the rest) you can cut and paste into your php just fine.

      nobody

    2. Re:The license is restrictive.. mods prohibited by Cederic · · Score: 2, Interesting


      So do it, get it done in the next two weeks, email Google, ask permission to distribute it and get offered a job.

    3. Re:The license is restrictive.. mods prohibited by Dorktrix · · Score: 5, Informative

      Have your attorney review the terms -- I think you are misunderstanding them. You may not redistribute GWT itself (the actual zip files containing the GWT compiler, among other things), but you own all output from the tools. We even released the source code to the class libraries under the Apache 2.0 open source license.

      GWT is available for commercial, non-commercial, and enterprise use with almost no strings attached. Please review the complete terms for details:

      http://code.google.com/webtoolkit/terms.html

      Bret Taylor
      Product Manager, Google Web Toolkit

  11. Re:Once again, Yahoo! is overlooked by Z0mb1eman · · Score: 4, Informative

    Ohhh? Was it overlooked?

    To be fair, Yahoo's is just a collection of controls and widgets to be included in a project indvidually - which has been offered by many other sites for quite a while now - while Google's promises to be a framework that takes the headache out of front-end AJAX development. Of course, in my experience "automatically generates code" and "takes the headache out of" are eventually incompatible down the line, but what do I know.

    I haven't played with either yet, but they sound like two different beasts to me. The most interesting part of this to me would be to see how Google writes their web code.

    --
    ClutterMe.com - easiest site creation on the Net. Just click and type.
  12. Another downside... by Bogtha · · Score: 5, Interesting

    ...is that it phones home to Google.

    When you use the Google Web Toolkit's hosted web browser, the application sends a request back to Google's servers to check to see if you are using the most recent version of the product. As a part of this request, Google will log usage data including a timestamp of the date and time you downloaded the Google Web Toolkit and the IP address for your computer. We won't log cookies or personal information about you, and we will use any data we log only in the aggregate to operate and improve the Google Web Toolkit and other Google Services. Please see the Google Privacy Policy for more information.

    --
    Bogtha Bogtha Bogtha
    1. Re:Another downside... by avdp · · Score: 5, Insightful

      As opposed to Firefox (and right about every modern application I've used), which doesn't? It's just checking if there is an update to download. And only in the "hosted web browser" which you don't even need to use. Jeez. Paranoid.

    2. Re:Another downside... by amliebsch · · Score: 3, Insightful

      It must be because Microsoft adheres to the "bazaar" notion of third-party software, rather than the "cathedral" of a centrally-managed package maintainer.

      --
      If you don't know where you are going, you will wind up somewhere else.
    3. Re:Another downside... by Mr.+Underbridge · · Score: 2
      The apps I use do not (this includes Firefox)

      It still checks, you just aren't using the results of that check.

    4. Re:Another downside... by orasio · · Score: 3, Insightful

      It phones home, and you don't have the source, that's enough to be paranoid.

    5. Re:Another downside... by avdp · · Score: 2, Interesting

      Well, you've got a point there. You only have Google's word that they're only sending what they clearly state they're sending. Even if you don't explicitely trust Google (and many don't) - people inspect these network packets all the time to keep the vendor honest. It's been a while since I've seen a report of a vendor being sneaky and doing more than advertise. I think most reputable vendors have learned the lesson that the PR hit is just not worth it.

      But again, what Google is doing is very common practice in Windows world (and getting quite popular in Linux world). It is by far the best way to keep software updated, and push (actually, really pull) updates and fix vulnerabilities as fast as possible.

    6. Re:Another downside... by jZnat · · Score: 3, Informative

      You can disable the checking for updates either as an option in about:config or as an actual compile-time option.

      --
      'Yes, firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
  13. Re:Interesting... by Freexe · · Score: 3, Interesting

    "http://www.w3.org/TR/html4/strict.dtd"><html<head <title>Re:Interesting?</></><body<h1<em>I</> Do believe there </><p<a
    href="http://www.example.com"<em>there</></>.
    Evil?</><p<a
    href="http://www.example.com/">is</></></></>

    Yes the above code is valid html. Do you speak it?

    --
    "In a time of universal deceit - telling the truth is a revolutionary act." - George Orwell
  14. Wow by astralbat · · Score: 3, Interesting

    I'm not into fanboyism but this is very very impressive. I took a look at the demos. The Desktop App Clone is particularly very impressive and it shows you what can be achieved with this stuff! I've never liked web development for the compatibility nightmare and plus the fact that it's a very messy business. Java with it's object oriented goodness will allow feature full applications to be developed extremely quickly!

  15. Not included and YUI comparisons... by mgkimsal2 · · Score: 4, Informative

    The oft-copied 'google suggest' dropdown stuff. It's not something demoed in the 'kitchensink' app they provide at http://code.google.com/webtoolkit/documentation/ex amples/kitchensink/.

    I agree with someone else that the Yahoo UI (yui) toolkit seems to get ignored a bit, but I think this plays to a different crowd.

    1) This is a java-based thing only it seems. People writing .net can use atlas for most of these features, people using Ruby or other scripting langauges probably have bindings to scriptaculous and other libraries to handle most of this. There were/are probably Java bindings already for scriptaculous, but this makes it easier for java people already used to swing/awt stuff.

    2) The YUI stuff was more javascript oriented, and, from my experience, difficult to use in some settings. I had a hard time getting the slider stuff to work as needed based solely on their code and one example page, for example. Perhaps that makes me not as l33t as some others who can debug others' javascript in their sleep - I dunno. I do know that if Google makes this easy for people to adopt, it'll take off. Partially because there's a lot of google love amongst early-adopters in the tech community, and partially because making things easy is just a good way to attract people. :)

    3) With the YUI stuff, Yahoo was/is seeming to cater to the scripting crowd more (witness the native serialized PHP responses you can get back). If google is going after the "I write Java apps" crowd, they may be able to bring in a new set of people to web-app development who before now were not in the web space.

    I interviewed one of the Yahoo engineers who worked on the YUI widgets release at my podcast - http://webdevradio.com - you can get some more perspective on what Yahoo was/is doing and trying to achieve with that move.

    Just some random thoughts...

  16. Take notes all.. by boxxa · · Score: 3, Interesting

    This is great news for all the developers out there. Google by doing this has proved once again that smart business practices and investments make a company, now how much software they patent and lock down. They specfically say that you can create applications like Google Maps and Gmail using their framework. Is someone gonna create a new Gmail or seach engine and take over Google? Prolly not, but Google has shown that not only can it develop high power applications and set the footprints for following developers, but they can also help the community advance just as they have. Just one of the many reasons I love Google.

    --
    Bryan
  17. Re:Yawn by volsung · · Score: 5, Funny
    To bring balance to the Force. For every crazed, frothing pusher of tech hype, there must be a sullen, ennui-laden detractor who either:
    • is bored by the new tech, and likes to proclaim so whenever possible.
    • did the same thing 5 years ago.
    • or thinks the technology is useless.

    This is required by the Central Hype-Limit Theorem:

    As the size of the sample increases, the average opinion of the group approaches the actual utility of the product in question.
  18. Nope - OWA was closed. by mgkimsal2 · · Score: 5, Informative

    Sorry, but I have to give it to someone other than Microsoft. While they did essentially invent the tech behind Ajax, the only major project they used it on was basically something that was closed. I don't mean source, but not open to the public. You only saw it if you had an organization using Outlook/Exchange in the first place, which still excluded a huge majority of people using the web. Had they ported hotmail to the OWA interface, that would have been a major revolution far greater than google maps or anything else. But they didn't.

  19. Re:AJAX isn't really ready for .NET by Anonymous Coward · · Score: 3, Informative

    .NET and AJAX really don't play nicely.

    Have you seen ICallbackEventHandler in ASP.NET 2 and MS's own ATLAS toolkit?

  20. YUI by mattwarden · · Score: 2, Interesting

    This impressive framework promises to make AJAX available to the masses and is one more step towards Google becoming the de facto Internet platform provider."

    Erm, actually they're playing catch up. From what I can tell, GWT is rather inferior to YUI.

  21. Re:Once again, Yahoo! is overlooked by gbjbaanb · · Score: 2, Funny

    And that includes Scott Adams

  22. Re:Interesting... BrowserQuirks++ by mnemotronic · · Score: 3, Informative
    Yes. BrowserQuirks is the vast range of dialects needed, beyond the root languages AychTeeEml, X-Eml, ThisWeeksVersionOfJavascriptAndWereStillNotEcmaCom pliant, and Sea-SS. BrowserQuirks is not so much an independent language, as it is a definition of what the root languges are not. BrowserQuirks (currently in beta rev 72429) is a dynamic, symbiotic, multi-vendor organism, which changes on a regular basis. There is no documentation, unless you're able to "read between the lines" of the various browser release notes - any root language feature not mentioned explicitly is probably not supported, or is supported in a non-standard way. And for that matter, even features that are mentioned are probably done in a non-standard way. A good comparison in the real world is to rapidly mutating virus that alternates between relatively benign and threatens to destroy all carbon-based life.

    The browser vendors consider this "a really good thing" because it offers "product differentiation" and "market segment focus". The cost in human lives is not an issue.

    --
    The Russians have won. They have made the world a cesspool of distrust, greed, fear and hate.
  23. Re:Interesting... by Freexe · · Score: 2, Informative

    The w3c validator is fine, to my understanding this is valid html

    http://virtuelvis.com/archives/2004/02/evilml

    --
    "In a time of universal deceit - telling the truth is a revolutionary act." - George Orwell
  24. Re:Interesting... by Bogtha · · Score: 3, Informative

    There's no way that's valid HTML.

    Yes, it is. It just uses HTML syntax that virtually no browsers have implemented. This is what the HTML 4.01 specification has to say on the matter:

    Some SGML SHORTTAG constructs save typing but add no expressive capability to the SGML application. Although these constructs technically introduce no ambiguity, they reduce the robustness of documents, especially when the language is enhanced to include new elements. Thus, while SHORTTAG constructs of SGML related to attributes are widely used and implemented, those related to elements are not. Documents that use them are conforming SGML documents, but are unlikely to work with many existing HTML tools.

    --
    Bogtha Bogtha Bogtha
  25. Already Been Done by TedCHoward · · Score: 2, Interesting

    This is an impressive toolkit and a nice approach, but Google is not the first to do this. Has anyone heard of ThinWire (http://www.thinwire.com/)? There are already production applications in place built on this framework.

  26. Google a Java shop? by lonesometrainer · · Score: 4, Interesting

    I didn't know Google was a Java shop. Do they mainly code serverside stuff in Java these days? If so, which technology are they using (O/R mapper, servlet container, tricks & quirks). Would be interesting to know.

    Any infos?

    1. Re:Google a Java shop? by chrisd · · Score: 5, Informative

      We use Java, C++, Python and a smattering of other languages for user facing stuff.
      Chris

      --
      Co-Editor, Open Sources
      Open Source Program Manager, Google, Inc.
  27. Re:AJAX isn't really ready for .NET by uradu · · Score: 2, Informative

    More like .NET isn't ready for AJAX. AJAX doesn't really use any new web technologies, it just applies existing ones in a somewhat new way. ASP.NET OTOH is a framework that tries to completely shield the developer from the underlying web technologies, and it does so with varying degrees of success, in the process turning out web technology idiots.

  28. Go google by SoulRider · · Score: 2, Funny

    It's really nice to see a company releasing new products to stay competitive instead of using litigation to destroy their competitors. I hope they can keep it up.

  29. See previous posts about ATLAS by spideyct · · Score: 2, Informative

    Search Slashdot for ATLAS (and make sure to copy over all of the negative posts about why people don't want this).

    Atlas is the AJAX framework built by Microsoft that allows you to use .NET GUI objects to render browser-compliant javascript and HTML.

    It is a much more proper predecessor to Google's release, compared with Yahoo!'s offering (which I believe MS also predated).

  30. Re:Once again, Yahoo! is overlooked [really?] by runningduck · · Score: 2, Insightful

    http://developers.slashdot.org/article.pl?sid=06/0 2/14/1326238

    Overlooked in what way? The title of the article was "Google Releases AJAX Framework," not "A Comprehensive Listing of All AJAX Toolkits."

    --
    -rd
  31. Second born... by neveragain4181 · · Score: 4, Funny

    From: http://code.google.com/webtoolkit/faq.html

    "What's the catch? Does Google own my GWT application? Do I have to run AdSense? Do I have to give Google my first-born child?

            There's no catch, we promise. See the Terms of Use for the nitty gritty details."

    I checked the ToU, apparently you have to make Adsense space on your *second* born child. Premium crib space is up to eCPM of $0.42 cents too, diapers down to under 10 cents.

    Very clever of them, I bet most people wouldn't check...

  32. Yet Another Initiative to fire all the webdevs by Kent+Brewster · · Score: 2, Informative
    From the top paragraph of the Google Web Toolkit page:

    JavaScript's lack of modularity makes sharing, testing, and reusing AJAX components difficult and fragile.


    Beg to differ. JavaScript has just as much "modularity" as any other object-oriented language; methods like JSON and libraries like Dojo, Prototype, and the aforementioned Yahoo! Web Services APIs are proof.

    Every few years there comes along Yet Another Initiative to fire all the webdevs. No disrepect to Google's engineers, who are clearly brilliant, but we've been there and done that. For a good time, open up Firefox's DOM Inspector, crack into their Kitchen Sink demo, and boggle over the iframes and tables and embedded JavaScript, oh my!
  33. back to the back button! by yagu · · Score: 2, Informative

    I haven't heard anyone comment about what I think is a great feature in this toolkit:

    Browser history management:

    No, AJAX applications don't need to break the browser's back button. GWT lets you make your site more usable by easily adding state to the browser's back button history.

    I know this is something you can hack together if you're writing your own hand-crafted js, but this will be a nice feature -- I haven't looked at the toolkit yet, but I wonder how easy to use this will be.

    Have any of the other frameworks provided this mechanism?

  34. Raises more questions than it answers... by mogrify · · Score: 3, Insightful

    I wonder how difficult it will be to write degradable applications with this toolkit. The demo applications I played with do nothing at all with javascript disabled... they're just a script tag in a body tag, so they make no attempt to render the application using plain HTML. I know they're just demos, but it won't save any time if you have to develop the non-js version separately... which is a problem particularly for those of us who have to develop to accessibility standards.

    Also, this is coming right on the heels of the buzz about Oracle's AJAX Framework... and of course there's the Eclipse AJAX Toolkit Framework, which uses Dojo, Zimbra, and OpenRico (which in turn uses prototype)... others have mentioned Yahoo!'s toolkit and Atlas, as well, not to mention Rails... My point is that there are suddenly a ton of frameworks that all have slightly different approaches to the whole AJAX idea. Some are higher-level, some lower; some target a specific server backend; some offer UI libraries... Any or all of these might merge or die off or be made irrelevant at any time. It's almost harder to develop AJAXy applications now than back when you had to write your own HTTP request code... sure, you can knock one out in ten minutes now, but you spend the time you saved choosing the toolset beforehand.

    I think I'll wait a bit... we've put the scorpions in the box and shaken it, so let's see who survives.

    --
    perl -e 'foreach(values %SIG){$_="IGNORE";}while(){}'
  35. echo framework anyone? by MartinG · · Score: 4, Informative

    Coding your UI in java and having it translated into javascript and html without having to worry about cross browser compatibility?

    Sounds familiar. It's rather like the echo framework

    The big differences I see are:

    1) Google toolkit advantages:
    - No load on the server to render the UI. All ui code runs on the browser, so this may help server scalability.

    2) Echo advantages:
    - Fully open source.
    - Richer set of ui components (IMO - see the demo at http://demo.nextapp.com/Demo/app )

    --
    -- MartinG To mail me: echo kewyjlcxyzvjfxbqwh | tr bcefhjklqvwxyz .@adgimnoprstu
    1. Re:echo framework anyone? by saturnism · · Score: 2, Informative

      Yeah, I think Echo is probably the most quiet framework out there that has all the great quirks even before Web 2.0 term was out. It receives less attention than it deserves.

      Also, GWT doesn't seem all that complete at all. Dojo is a pretty good place to look for AJAX componentsd as well. http://dojotoolkit.org/

      --
      it is me
  36. Only thing that matters by IamTheRealMike · · Score: 2, Insightful

    Are they using this for their own webapps?

  37. Re:java based on java? by fireshipjohn · · Score: 2, Informative

    >> Doesn't AJAX mean 'Async. Java And XML'? So can you have AJAX based on something else?

    Javascript not Java, so yes, you can have AJAX based on something else.

  38. Re:I have yet to figure out AJAX by El_Muerte_TDS · · Score: 3, Funny

    Oh Gawd No!

    I forsee a couple of issues:
    "Spend the whole day playing with GAWD"
    "That site is mostly created by GAWD"

  39. Re:java based on java? by emoeric · · Score: 2, Informative

    AJAX = "Asynchronous JavaScript and XML"

    so yes, you can have it based on something else. Java != Javascript

    --

    |---------------|
    practically an AC
  40. Re:Genius by bobintetley · · Score: 2, Informative

    I'm suprised no one, especially Sun, have tried it earlier.

    They did (along with lots of other OSS toolkits - get googling)

  41. Remember the giant sucking sound from 2 years ago? by QuantGuy · · Score: 2, Insightful

    ...when Google started vacuuming up a lot of stray Java talent? I'm thinking of folks like Josh Bloch (author of Effective Java, one of the best books I've ever read on Java) and Adam Bosworth (former CTO of BEA). I was always sort of curious about what Google was up to. I've got no proof that either of these gentlemen we involved in GWT, but I'd be surprised if they weren't. Good job, Google.

  42. Re:java based on java? by Matz+L.E. · · Score: 2, Informative
    Doesn't AJAX mean 'Async. Java And XML'?
    No, it's "Asyn. JavaSCRIPT and XML".
    So can you have AJAX based on something else?
    Yes, there are AJAX-Framweworks based on PHP.
  43. Before you get ideas of grandeur... by Jugalator · · Score: 2, Insightful

    Note that this toolkit primarly seem to try solve the problems of browser quirks, more efficiently design web sites using AJAX, and do remote procedure calls, not really to leverage the power of Java development and its language to web developers and Javascript.

    The Google Web Toolkit supports only a small fraction of the Java Standard Library and seem to be able to replicate the functionality of only a few classes through its emulation library.

    This is the stuff from the Java libraries that you can use and have it be able to "translate" your work: java.lang classes and java.util classes.

    --
    Beware: In C++, your friends can see your privates!
  44. If you like Java... by drew · · Score: 4, Insightful

    I suppose that's nice if you actually like programming in Java.

    I'll stick to rolling my own, thanks. I suspect I wouldn't be able to use a tool like this for more than a half hour without finding something I want to do that the toolkit doesn't support. What then? Can you edit the JavaScript output by hand or is it totally obfuscated?

    --
    If I don't put anything here, will anyone recognize me anymore?
  45. Lisp Macros by psicode · · Score: 3, Interesting

    I am surprised that no one has yet brought up lisp macros which can be used to develop a similar framework. Code can be written in Lisp and compiles/generates to javascript. See http://www.cliki.net/Parenscript and http://www.cliki.net/jsgen for implementations in common lisp. The problem I see with any form of generated javascript is that it will be hard to debug should something unexpectedly go wrong.

  46. GWT works with all server technologies by Dorktrix · · Score: 2, Informative

    Actually, GWT works with all server technologies (PHP, ASP, Java, etc). GWT is primarily a client-side technology that is deployed as HTML and JavaScript that can be served by any web server. If you want to do RPCs from GWT to a non-Java server, that is easy too; check out our JSON RPC example here: http://code.google.com/webtoolkit/documentation/ex amples/jsonrpc/. We created this example to demonstrate this exact use case.

    Bret Taylor
    Product Manager, Google Web Toolkit

  47. Re:Google is playing catch-up by belg4mit · · Score: 2, Insightful

    Gee ya think? I wasn't aware that either of these translating compilers spit out client agnostic code.
    Did you stop to think I might have been saying that, discounting Mono:

        Java is available for everyone? .NET is only available to MS customers.

    I don't relish the chance of developing with either but I'd be more likely to pick up a Java toolkit, thank you.

    PS> WTF is with slashcode's not honoring line breaks between quotes in "Plain Old Text"?

    --
    Were that I say, pancakes?
  48. Re:Thank You for clearing that up. by HighOrbit · · Score: 2, Interesting

    First I want to say "Thank you" for releasing the project for free use and a double "Thank you" for having large portions under the Apache license.

    I figured that the output would be owned by the user, but the terms initially looked like the toolkit itself was restricted except for the parts you got from other projects.

    I opened the tarball and the two jars and have been reviewing some of the files. I see that substantial numbers of the .java files have an Apache license prefixed. Excellent!

  49. Re: Abstraction by kthejoker · · Score: 2, Insightful

    Forget "acceptable" - website design and development is perhaps the most practical science ever created. Nobody "does things because they can" in web development - people create toolkits, APIs, services, layouts, hacks, and other bits of code for the Web so that other people can use them to *actually build websites.* That means productivity is not only key, but it is desired at the practical exclusivity of knowledge of the code. In fact, if this toolkit means an art student largely ignorant of programming constructs can create a website like Flickr or Slashdot or a smoother looking Gmail, then I applaud that, because too few web designers really have any grasp of the word design.

    The other difference between websites and most programs is that a lot of standalone programs are designed for niche users with specific needs, and can't be translated for other uses easily, whereas most website programming is designed out of flexibility. Because the web uses such loose languages (XML, JSON, SOAP, etc) toolkits are a great way to address the flexibility in a more intuitive way.

    It's apples to oranges, really. Web design is 100% practicality.