idpv3 and web flow : flow-location or flow-location-pattern ?

Brent Putman putmanb at georgetown.edu
Wed Jun 12 17:11:29 EDT 2013


On 6/12/13 12:14 AM, Brent Putman wrote:
> I also found the webflow:flow-registry/@base-path to be useful, so
> that the flow references can be relative to that. I had not yet played
> around with externalized type of config there for putting this stuff
> outside the war, but it would be awesome if it were as simple as
> putting a file:// URL in base-path. 


I played around with this for a few minutes.  The base-path can take a
file:// URL there and that aspect seems to work fine as far as finding
flows.  That includes bean-imports specified simply to reside in the
same directory as the flow definition.

I do see an issue with view-states with that config.  If you let it do
its default thing of  resolving the view name based on the state id
(i.e. no view-state/@view attribute present), it doesn't work by default
to resolve it relative to the externalized flow-definition. 
Unfortunately it also doesn't work if you specify the view as an
absolute file:// URL (that probably isn't even legal syntax, just tried
for the hell of it).  It does work if you reference the view as a
classpath resource.

>From the exception and my (limited) knowledge of the components
involved, I suspect this can be made to work using customized impls,
perhaps the MVC view factory stuff, which they cover in the docs a
little.  There might also be some Spring MVC out-of-the-box components
that can help there.




More information about the dev mailing list