Activate your free membership today | Log-in

Friday, May 16th, 2008

Spring WebFlow 2.0; JavaScript Module Released

Category: Dojo, Java, JavaScript, Library

<p>Spring Web Flow 2.0 has been released which includes a new Spring JavaScript module.

Here is an example of an onclick wrapper calling an Ajax event:

HTML:
  1.  
  2. <a id="prevResultsLink" href="search?searchString=${searchCriteria.searchString}&page=${searchCriteria.page - 1}">Previous Results</a>
  3. <script type="text/javascript">
  4.     Spring.addDecoration(new Spring.AjaxEventDecoration({
  5.         elementId: "prevResultsLink",
  6.         event: "onclick",
  7.         params: { fragments: "body" }
  8.     }));
  9. </script>
  10.  

I got to sit down with Keith Donald and Jeremy Grelle from SpringSource and talk to them about the going-ons on the Web tier. There are a couple of moving parts, from the core Web framework (Spring MVC), to the Spring Webflow controller engine, to the new Spring JS module.

Spring JS abstracts on top of other JavaScript libraries (this release supports Dojo, but more can come), and aims to make certain tasks very easy to do. Jeremy talks about some of the use cases, such as form validation. The library could be used stand alone, but of course there is nice integration with the server side Spring frameworks too. This allows you to annotate in Java, and get nice Ajax behaviour on the client.

Related Content:

  • Web application developer tool in latest Spring
    Spring 2.0, the latest release of Java-based open-source Spring Framework, which is a lightweight framework that offers an alternative to Java EE, is...
  • Rhino in Spring 1.1 ready to run
    Rhino in Spring, which is designed to integrate the Mozilla Foundation's Rhino JavaScript interpreter for Java with the Spring Framework, has its next...
  • Ajax for Java
    DWR 1.0, designed to allow for easier Ajax development inside Java, has been released with remote JavaScript calls into Java, automatic JavaScript...
  • Spring is the New Java EE
    The new J2EE was back with a vengeance at The TSS Java symposium. BEA's demeanor indicated that Weblogic was going to be out in front with a beta...
  • Spring Web Flow
    Spring Web Flow (SWF) is an emerging module of The Spring Framework. The module is part of Spring’s web application development stack, which...

Posted by Dion Almaer at 12:01 am
2 Comments

+++--
3.9 rating from 76 votes

2 Comments »

Comments feed TrackBack URI

I’m very interested in this interview and really appreciate the trouble you’ve gone to to get it. But, I can’t understand what they’re saying.

Comment by rleighton — May 16, 2008

ya, voices are lost in the ambient noise of the room :( the bits I heard sound exciting though :)

Comment by MadeByChad — May 16, 2008

Leave a comment

You must be logged in to post a comment.