Results 1 to 1 of 1

Thread: FaceletsViewResolver together with a XmlViewResolver

  1. #1
    Join Date
    Sep 2008
    Posts
    5

    Default 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 at 04:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •