Spring Web Flow Project Update

Keith Donald

The Spring Web Flow project team has just completed the 7th maintenance release of Web Flow 2. This is our best release to-date and comes nearly one year to the day of the Web Flow 2.0.0 final release. Now, with the 2.0.x line mature and stable, we are beginning work on the next major version. In this entry, I would like to reflect on the past year and also provide some information on where we are headed.

Web Flow 2 Adoption

When Web Flow 2 was released last year, we saw 50,000 downloads in the first two months after the release. Since then, our forum traffic has steadily increased, and we have seen new adoption across several exciting industries. Many of you know Spring Web Flow is the foundation of Orbitz's on-line travel platform which today powers sites such as ebookers.com and nwa.com. If you have been following the 2009 NBA playoffs, you may also find it interesting Web Flow is an important component of nba.com as well.

Our Work in the Past Year

Like all Spring projects, Web Flow depends on feedback to be successful. Field interactions with customers and SpringSource support engineers have driven much of our work on 2.0.x in the last year. The community has also been exceptional at reporting bugs, contributing patches, highlighting usage scenarios, and generally discussing ways the project can continue to improve.

I'd like to quickly recap some of the concrete improvements made since 2.0.0.RELEASE:

  • Configuration simplifications and conventions for flow URL mapping

    This one, applied in 2.0.5 and driven by customer feedback as well as Dan Allen's JSFOne presentation, cut the size of a typical webflow-config.xml in half, down to ~20 lines of configuration. As you can see, this was achieved by applying a wildcard-search for flow definitions in conjunction with conventions for binding flow definitions to URLs based on their flow ids.

  • Support for explicit view-state model bindings

    This improvement, first provided to SpringSource customers in response to this security advisory and subsequently released in 2.0.3, allows you to restrict the set of allowed model bindings by view-state. This was achieved in the declarative style shown here.

  • Redirect-after-post improvements

    One of the most useful features of Web Flow is the redirect-after-post pattern just works, which is one critical prerequisite to good back button support with controlled navigation. 2.0.5, 2.0.6 and 2.0.7 all introduced subsequent improvements to this support. The most recent improvement ensures redirect behavior is applied consistently in all scenarios, including when there is a binding or validation error. You can review the source code that controls the enforcement of this pattern in the doEnter and doResume methods of ViewState.java.

  • Support for streaming actions

    The community figured out how to stream files back to a client participating in a flow. Documented support for this was overlooked in Web Flow 2.0.0 and was added in 2.0.6.

  • Type conversion improvements

    Numerous improvements to the system that powers view-state model binding were applied from 2.0.2 through 2.0.6. The system provides all the unique features of Spring's DataBinder, such as support for converting elements of generic collections, with a simpler type Converter API compared to Java PropertyEditors.

In addition to these core improvements, we have seen a number interesting Web Flow integrations in the last year such as Grails 1.1, the ZK RIA framework, Terracotta, IceFaces, SpringSource's richweb training course, IntelliJ, Skyway Software, and the first Web Flow 2 book.

Where We Are Headed

We have a lot planned for the future. I will leave all the technical details for another time, but would like to summarize some of the key themes of the effort. First, Web Flow 3 will be the first release to require Java 5, as it will build on Spring Framework 3 as its foundation. Second, you can expect to see the introduction of a @Flow model that compliments Spring MVC's stateless @Controller model and allows stateful web flows to be defined as POJOs. Third, you can expect Spring JavaScript and Spring Faces, two modules that grew out of the Web Flow 2 effort, to both be promoted to top-level Spring projects. Spring JavaScript will become Spring's official Ajax integration project, and Spring Faces will become Spring's official JavaServerFaces integration project.

I look forward to meeting with many of you at SpringOne next week to discuss your experiences applying the project and our future directions!

Similar Posts

Share this Post
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DZone
  • LinkedIn
  • Slashdot
  • Technorati
  • TwitThis
 

12 responses


  1. SWF is great but file upload support is broken in 2.0.7.

    Adding enctype="multipart/form-data" to the in a JSP page makes it so that no further transitions for that flow seem to be recognised. e.g. can't navigate to the next page.

    This is fairly critical. Can we get an emergency 2.0.8 release with this either fixed or documented?


  2. Hi Greg,

    We're not aware of any fileupload issues with 2.0.7. Would you mind opening a Web Flow JIRA at jira.springsource.org? If you can attach a minimal test case to reproduce that would help us reproduce and resolve any issue quickly.

    Cheers,

    Keith


  3. Now I'm excited for the post Spring 3.0 Web Flow. Any guesstimates as to when can we expect it?


  4. Hi Keith,

    Created a new Jira issue to request an addition to the doco about minimum requirements for file upload.

    I was mistaken about there being a problem. There is in fact, like you say, no problem with file upload in 2.0.7.

    Thanks,
    Greg


  5. Have you made the flowID url parameter hideable yet?

    I found other problems when I evaluated 2.0.3 for our business, but that was the kicker against it.


  6. Hi,

    Need help in doing binding and validation for form by using webflow 2.
    Could you please give me some guidelines for configuring model binding and how to write the binding in a form for a field. How to implement validation?

    Thanks in advance.


  7. I really look forward to Webflow 3. The ability to define a flow via a POJO instead of XML would be very welcome indeed! Can you provide any details on a rough timeline for the first milestone release?


  8. Hi,

    I am a newbie to spring webflow. When attempting to upgrade an existing project from spring webflow 1.0 to 2.0.8, we could not find any way to specify repository-type=client continuation anymore. Can you please give some guidelines on how to continue using the same in 2.0.8? If not, what other alternatives are available.

    Keenly awaiting a response. Thanks in advance.

    Regards,
    Deepa


  9. Hi,
    First of all, thanks for a great web framework. However, I've spent quite some time searching for top level architecture documentation and found it somewhat lacking. I think it would benefit the adoption-rate of Spring Web Flow if there were good diagrams and explainations of how Spring MVC, SWF and Spring Faces fit together (and other view technologies). A thourough explaination of the life cycle would also be very nice (especially since this is a major change from SWF 1 to SWF 2).

    Sincerely
    Odin


  10. Hi Keith,

    Can you please post the best practices specic to SWF 2.0 to be followed while developing an application using Webflow 2.0

    Thanks in Advance
    Ruby


  11. If some one wants to add link to particular view of a flow in the email content, then is there some standard feature the webflow supports?


  12. Hi keith

    I'm trying to create a project with NetBeans 6.1 visual web pack woodstock swf 2.0.8 spring 2.5, but i fail… i donĀ“t use facelets and i can't find an example about the configutarion of web.xml and applicationContext.xml for this.

    Could you help me to find a documentation about this or an example…!

    thanks,
    max

Leave a Reply