We are starting a new project and are seriously considering using Webflow. Given our past experience with Seam, Richfaces and Facelets, we intend to use JSF/Facelets and not SpringMVC/JSP.
While the Webflow 2.0 docs say that Webflow is intended to mix in with other view technologies -- where webflow coexists with other traditional controllers, I can't find a app that shows this sort of thing. The booking-faces is "all webflow" -- only the intro.xhtml page is outside a flow and it has no interaction with any backing beans. The corresponding jsf-booking example is all "raw jsf" without any corresponding webflow.
We very much like the idea of using webflow's simplified XML based flow controller configuration and its state and navigation management. However, the webflow controller does not appear to be appropriate for single-page, non-flow based views -- at least not when we want to keep those single pages "bookmarkable", as many pages in our app will need to be (e.g., a search results report, status page, event details, etc.).
We've experimented with using webflow as the controller for these pages and using URLRewrite to allow bookmarkable access. This works in one direction, but we can't get it to work in the other: For example even if we use URLRewrite to map
(and then map the flow var id from flashScope.id), we can't find a way to use the URLRewrite <outbound-rule> to keep the user-visible URL bookmarkable -- it changes to
the event id has been moved into flow scope, and is no longer visible on the URL, so I can't extract it and hide the "flow execution" state from the user.
I anticipate the answer will be that you do not recommend using the webflow controller for these sorts of pages. But I think that means that we will have to split our navigation rules and controller/validation logic between two different technologies (in a myflow.xml for multi-page flows, in faces-config.xml and various spring or JSF backing beans for single page bookmarkable pages). Seems ugly, error prone, and difficult to train new programmers. Hence my banging of head against wall to try to use the "cleaner" webflow controller for both types of pages...
Can anyone point me at an example application that mixes both JSF webflow and simple bookmarkable pages?