spring-webflow
spring-webflow copied to clipboard
provide a convenient way to rewrite URLs with flow execution keys [SWF-116]
Andreas Schildbach opened SWF-116 and commented
Currently, you have to rewrite all URLs by hand: constructs like "detail.html?_flowExecutionKey=${flowExecutionKey}" clutter every JSP (or other view template).
A possible SWF taglib springs to mind, with a tag similar to <c:url>.
Or perhaps a ServletFilter could override encodeUrl() to magically provide the key, similar to session URL rewriting provided by the default implementation of encodeUrl()? This way, the functionality of <c:url> would not have to be duplicated.
Attachments:
- webflowtags.zip (9.87 kB)
Issue Links:
- #121 View template support including automatic bookmark-friendly flow URL generation and a spring:webflow tag library. ("depends on")
2 votes, 3 watchers
Marten Deinum commented
For our current project I already have some web flow tags created.
- Write hidden flowExecutionKey field
- render links with key, eventId
- render submit button with the correct eventId name and optional hidden flowExecutionKey field.
When interested I can share the code.
Marten Deinum commented
Implementation of spring web flow tags which we use in our project to render tags. Feel free to use/adopt/abuse the code.
Alex Marshall commented
I think this is a really good idea that could help a lot of people using Webflow. Why hasn't there been any action on this in the (more than a) year since it's been reported ?