I'm trying to write a crude plugin system with web flow and freemarker. Web Flow works fine loading the flow definitions from my plugin jars in the standard directory structure I have defined. The structure I have in my jar's is
The flow name is unknown thus we use wild cards in the flow definition loading, as per the below.Code:/META-INF/config-webflow/somewebflow/*.ftl
What I know want to do is load the Freemarker templates from the same directories as the flow definitions. But I can not get this to work, I have tried many ways. Any ideas how I could get this to work?Code:<webflow:flow-registry id="defaultFlowRegistry" flow-builder-services="flowBuilderServices" base-path="classpath*:/META-INF/config-webflow"> <webflow:flow-location-pattern value="/**/*-flow.xml" /> </webflow:flow-registry>
Code:<!-- freemarker config --> <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPaths"> <list> <value>classpath:/META-INF/config-webflow/**/</value> </list> </property> <property name="defaultEncoding" value="utf-8" /> <property name="preferFileSystemAccess" value="false" /> </bean>


Reply With Quote