facebook

Faces XML Validation fails for DelegatingVariableResolver

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #240423 Reply

    The Faces XML validater complains “org.springframework.web.jsf.DelegatingVariableResolver” is not a subtype of “javax.faces.el.VariableResolver”.
    But Spring’s DelegatingVariableResolver actually extends VariableResolver!

    Is this a bug of the Faces XML validator?

    Thanks for any help,
    Robert

    P.S. Here’s my faces-navigation.xml file:

    
    <?xml version="1.0" ?>
    <!DOCTYPE faces-config 
        PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" 
        "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
        <application>
            <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
            <locale-config>
                <default-locale>de</default-locale>
                <supported-locale>en</supported-locale>
                <supported-locale>de</supported-locale>
            </locale-config>
            <message-bundle>messages</message-bundle>
            <!--variable-resolver>de.mindmatters.faces.spring.FacesSpringVariableResolver</variable-resolver-->
        </application>
        <application>
            <view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
        </application>
        <navigation-rule>
                <navigation-case>
    ...
                </navigation-case>
    ...
        </navigation-rule>
    </faces-config>
    #240439 Reply

    Riyad Kalla
    Member

    Robert,
    I just created a new web project, added Spring and JSF support to it,a nd copied this content into a new file (removing the navigation-cases and the view-handler) and didn’t receive any validation error.

    What version of MyEclipse are you using (Window > Prefs > MyEclipse). I’m using version 4.0.3, I know we fixed some JSF validator issues in .1 and .2 I believe.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Faces XML Validation fails for DelegatingVariableResolver

You must be logged in to post in the forum log in