We are trying to use spring web flow with Blossom but cannot get it to work. We already use Blossom for our templates and paragraphs.
The documentation on the subject is somewhat lackluster: http://documentation.magnolia-cms.com/modules/blossom.html#UsingSpringWebFlowinsideMagnolia What else do we need to do? How do we need to configure spring web flow to get it to work with blossom? Should we configure it as normal or do we need to adapt our configuration to fit Blossom? This is our spring-webflow.xml (imported from blossom-servlet.xml) so far: [code] <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:webflow="http://www.springframework.org/schema/webflow-config" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd"> <!-- Setup Web Flow here --> <webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderService"> <webflow:flow-location-pattern value="/WEB-INF/flows/**/*-flow.xml" /> </webflow:flow-registry> <!-- Deploy a FlowExecutor, the central service for executing flows --> <webflow:flow-executor id="flowExecutor"> <webflow:flow-execution-attributes> <webflow:always-redirect-on-pause value="false" /> </webflow:flow-execution-attributes> </webflow:flow-executor> <webflow:flow-builder-services id="flowBuilderService" view-factory-creator="viewFactoryCreator" /> <bean id="viewFactoryCreator" class="org.springframework.webflow.mvc.builder.MvcViewFactoryCreator"> <property name="viewResolvers"> <list> <ref bean="springViewResolver" /> <!-- This is a try to use the blossom view resolver: info.magnolia.module.blossom.view.ParagraphViewResolver as configured in blossom-servlet.xml --> <ref bean="blossomViewParagraphViewResolver"/> </list> </property> </bean> <!-- freemarker config --> <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderPath" value="/test-magnolia-components/paragraphs/flows/" /> </bean> <bean id="springViewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> <property name="cache" value="true" /> <property name="prefix" value="/example-flow/" /> <property name="suffix" value=".ftl" /> <!-- if you want to use the Spring FreeMarker macros, set this property to true --> <property name="exposeSpringMacroHelpers" value="true" /> </bean> </beans> [/code] -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=3d0286d6-898f-4c88-b1bd-4a78d96f73ea ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
