Results 1 to 5 of 5

Thread: Where is DelegatingFacesELResolver in 2.5?

  1. #1
    Join Date
    Dec 2005
    Posts
    929

    Default Where is DelegatingFacesELResolver in 2.5?

    Hi,
    I read on page 27 of the Spring 2.5 ref doc pdf there is a new variant of DelegatingVariableResolver called DelegatingFacesELResolver for JSF 1.2, however I can't find the class in the javadocs or the spring 2.5 jar. There is a class called SpringBeanFacesELResolver in the org.springframework.web.jsf.el package and the javadocs for this class also refer to the DelegatingFacesELResolver.
    Is something missing here?
    Thanks
    Alan

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    The web stuff isn't in the full spring.jar anymore (as mentioned in the changelog). You need to add spring-web and the other desired web jars yourself.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    In fact, there is no more DelegatingFacesResolver in Spring 2.5, but as you mentionned it in your first Post, there is now SpringBeanFacesELResolver.

    You have to declare it in your faces-config.xml like this:

    HTML Code:
    <application> 
      <el-resolver> 
       org.springframework.web.jsf.el.SpringBeanFacesELResolver 
      </el-resolver> 
    </application>
    By the way, it was a pain in the a** ti figure that out, because of the terrible confusion about the name of the JSF 1.2 EL Resolver in Spring 2.5. The doc is not up to date with the distrib.

  4. #4
    Join Date
    Dec 2005
    Posts
    929

    Default

    Thanks. Can you please post your full DOCTYPE in your faces-config.xml file? Eclipse is giving me an error and my Tomcat won't start - this is probably because I have the JSF 1.1 DTD instead of 1.2 in mine
    Alan

  5. #5

    Default

    You're welcome:

    HTML Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    	version="1.2">
    :
    :
    :
    </faces-config>
    Good Luck.

Posting Permissions

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