Apache Tiles 2.1.3 has a wildcard feature where a tiles definition includes an asterisk:
<definition name="flow/*" extends=".mainTemplate">
<put-attribute name="header" value="/WEB-INF/jsp/header.jsp" />
<put-attribute name="body" value="/WEB-INF/jsp/flow/{1}.jsp" />
</definition>
It's explained here, but basically this layout is used for any JSP in the "flow" directory.
The problem is Spring Webflow produced infinite recursion with Tiles:
org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'createAccount' of flow 'jsp/flow'
Caused by: java.lang.IllegalStateException: Exception occurred rendering view null
Caused by: java.lang.NullPointerException
I wound up inserting many individual Tiles definitions instead of one wildcarded definition (insert frowny face here).
How does Tiles wildcards work with Spring WebFlow?