Results 1 to 6 of 6

Thread: 2.0 M4 to 2.0.0.RC1 Upgrade Steps

  1. #1
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Post 2.0 M4 to 2.0.0.RC1 Upgrade Steps

    For those of you running M4, there are a few configuration changes you will likely need to make when upgrading to 2.0.0.RC1. Thanks to Peter for initially compiling this list for the benefit of our community. I've taken the list, added to it, and stuck this thread.

    M4 to 2.0.0.RC1 Configuration Changes
    --------------------------------------------

    The ResourceServlet has moved from Spring Faces to Spring Javascript (spring-js), as it is reusable outside of a JSF environment:

    Code:
    M4:
    org.springframework.faces.ui.resource.ResourceServlet
    
    RC1:
    org.springframework.js.resource.ResourceServlet
    The faces-config namespace has changed to just 'faces', in-line with Spring schema naming conventions:

    Code:
    M4:
    xmlns:faces="http://www.springframework.org/schema/faces-config"
    http://www.springframework.org/schema/faces-config
    http://www.springframework.org/schema/faces-config/spring-faces-config-2.0.xsd
    
    RC1:
    xmlns:faces="http://www.springframework.org/schema/faces"
    http://www.springframework.org/schema/faces
    http://www.springframework.org/schema/faces/spring-faces-2.0.xsd
    The Spring MVC FlowController has moved to the mvc.servlet package, since there is also now mvc.portlet support:

    Code:
    M4:           
    org.springframework.webflow.mvc.FlowController
    
    RC1:
    org.springframework.webflow.mvc.servlet.FlowController
    You will see this error if defining flow <var>'s that use the 'scope' attribute:

    Code:
    org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'scope' is not allowed to appear in element 'var'.
    The <flow> <var> element no longer has a 'scope' attribute. Flow instance variables should be flow scoped, so the attribute is unnecessary. For those using a value of 'conversation' before, first evaluate if you need conversation scope instead of flow scope; if so, set the conversation scoped variable using an on-start action instead.

    You will see this error if you are not running Spring Framework 2.5.3:

    Code:
    org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.xml.DomUtils.getChildElementsByTagName(Lorg/w3c/dom/Element;[Ljava/lang/String;)Ljava/util/List;
    Web Flow 2.0.0.RC1 requires Spring 2.5.3.
    Last edited by Keith Donald; Apr 14th, 2008 at 07:53 AM.
    Keith Donald
    Core Spring Development Team

  2. #2
    Join Date
    May 2006
    Posts
    112

    Default

    a couple more things

    Code:
    m4:
    org.springframework.webflow.mvc.MvcViewFactoryCreator
    
    Rc1
    org.springframework.webflow.mvc.view.MvcViewFactoryCreator


    Code:
    m4:
    <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController">
    		<constructor-arg ref="flowExecutor" />
    		<property name="flowRequestUrlHandler">
    			<bean class="org.springframework.webflow.context.servlet.ParameterBasedFlowUrlHandler"/>
    		</property>
    
    	</bean>
    	
    
    rc1
    <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController">
    		<constructor-arg ref="flowExecutor" />
    		<property name="flowUrlHandler">
    			<bean class="org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler"/>
    		</property>
    	</bean>
    note the change in the property name. In the reference doc it is the new class file but the old property name

  3. #3

    Default

    When using facelets don't forget to add the following in your web.xml:

    Code:
    <context-param> 
        <param-name>facelets.RESOURCE_RESOLVER</param-name>  
        <param-value>org.edoframework.faces.ClasspathResourceResolver</param-value> 
      </context-param>
    Kind regards
    Jan

  4. #4
    Join Date
    Aug 2004
    Posts
    218

    Default

    Quote Originally Posted by secutus View Post
    When using facelets don't forget to add the following in your web.xml:

    Code:
    <context-param> 
        <param-name>facelets.RESOURCE_RESOLVER</param-name>  
        <param-value>org.edoframework.faces.ClasspathResourceResolver</param-value> 
      </context-param>
    What is this for? The sample application doesn't require it. Which jar do you need for the dependency.

  5. #5
    Join Date
    May 2008
    Posts
    227

    Default

    yes,why this is required?

  6. #6

    Default

    Hello,

    My previous post on this thread was done at the wrong place and at the wrong time. Sorry for that.
    Still the class mentioned in my post allows our framework to search for facelets template in the classpath.

    Kind regards
    Jan

Posting Permissions

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