Home
vgs_rss' Journal -- Day [entries|friends|calendar]
vgs_rss

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

Spring WebFlow 2.0; JavaScript Module Released [16 May 2008|06:21am]
05:01 16.05.2008
Spring WebFlow 2.0; JavaScript Module Released

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}"></a>Previous Results</a>
  3. <script type="text/javascript"></a>
  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.


read more at Ajaxian
post comment

navigation
[ viewing | May 16th, 2008 ]
[ go | previous day|next day ]