I've introduced a "ViewDescriptorCreator" strategy which gives you full control over the view name to be returned when a view state or end state is entered.
Now we're going to add new support into the XML dtd for common descriptor creator strategies. Obviously, a static view name strategy already exists ("SimpleViewDescriptorCreator").
So, something like:
Code:
<view-state id="myViewState" view="myStaticView"/>
<view-state id="myViewState" view-creator="samples.MyViewDescriptorCreator"/>
<view-state id="myViewState" redirect="myRedirectView?foo=${flowScope.foo}"/>
The latter would need to be recognized as an expression to be resolved by the creator implementation.