Discussions

News: Tech Talk: Bram Smeets on Ajax with the Spring Framework

  1. In this presentation, filmed at The Ajax Experience in October 2006, Bram Smeets, core developer for the Spring Modules at Interface21, looks at different ways of tying your Spring middle tier to an Ajax front end. Some of the frameworks that he covers include, JASON-RPC for Java, DWR, GWT, Echo2 and TIBCO GI. From the presentation:
    I was talking to someone yesterday, and he said "I have been a Java developer and have been using Spring. I've sort of got my stuff together on the back end, and I really know how to program Java Enterprise applications, doing transactions, etc. and leveraging the power of Spring. But now my manager comes to me and he says, we want AJAX. Our new web application has to be Web 2.0, so we want to use AJAX." I've heard that a lot, and the problem that I think most of you have and at least I've had, is where to start, right? Which framework to take from that, and what I will hopefully show you is what I think is the right decision... There is a lot of difference in the types of (Ajax) frameworks that are out there and what they actually do for you. One of the categories of framework is the 'User Interface' framework. This typically provides you with things like animation, drag and drop, widgets like Dojo, but they really do not provide you with anything else on the server side. So, it is fairly limited to client-side AJAX. Next, we have the RPC frameworks. These are the frameworks that are really targeted at just providing you with a bridge between your Java backends and your browser clients. The third category is the utility framework. These actually do really specific things. If you have a problem, for instance, such as history management, then there is a framework out there called ‘Really Simple History’ which has a really nice solution which you can use independently of whatever framework you are using. Another utilitly framework is AJAX Pages, which only does rendering and provides you with templates....
    What are some of the challenges you've come across developing an Ajax front end for your Spring application?

    Threaded Messages (3)

  2. Where to find the source code[ Go to top ]

    Hi, the presentation was good and I want to know where I can download the source code. If you know please post that
  3. excellent presentation[ Go to top ]

    Yes, this was thought-provoking. We want to see the source code please.
  4. Why no mention of the XT AJAX Framework?[ Go to top ]

    Great presentation, I found it very informative, however I was wondering why there is no mention of the XT AJAX Framework? The presentation focuses on DWR as the leading framework to be used when integrating AJAX with Spring. I have used both AJAX XT and DWR and have found the XT Framework to be a cleaner solution. Some of the benefits of the XT framework is basically there is no writing of JavaScript (everything is Java based), also with DWR one must manually populate the command/form object and with XT you have access to the populated command/form object. For a great overview of the XT AJAX framework see: https://springmodules.dev.java.net/docs/reference/0.8/html_single/#ajax-framework Keith