Announcement Announcement Module
Collapse
No announcement yet.
FaceletsViewResolver together with a XmlViewResolver Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • FaceletsViewResolver together with a XmlViewResolver

    Hi all,

    how can i use the faceletsViewResolver together with a XmlViewResolver?
    Do I have to link the new XmlViewResolver with the viewFactoryCreator of the webflow:flow-registry?
    I want to use the views defined in view-config.xml within a webflow.


    Code:
    	<!-- Configures the Spring Web Flow JSF integration -->
    	<faces:flow-builder-services id="facesFlowBuilderServices"  />
    
    	<bean id="pdfViewResolver" class="org.springframework.web.servlet.view.XmlViewResolver">
            <property name="order" value="1"/>
            <property name="location" value="/WEB-INF/view-config.xml"/>
        </bean>
    	
    	<!-- Maps logical view names to Facelet templates (e.g. 'search' to '/WEB-INF/search.xhtml' -->
    	<bean id="faceletsViewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
    		<property name="viewClass" value="org.springframework.faces.mvc.JsfView"/>
    		<property name="prefix" value="/WEB-INF/" />
    		<property name="suffix" value=".xhtml" />
    		<property name="order" value="2"></property>
    	</bean>
    Last edited by Pyro; Sep 22nd, 2008, 04:15 AM.
Working...
X