ICEfaces
  1. ICEfaces
  2. ICE-5373

Core XML configuration files are invalid

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces 2 Eclipse

      Description

      The faces-config.xml files that we include are not properly valid with some IDEs and app servers. The following file:

      /icefaces-2.0.0-alpha2/core/src/main/resources/META-INF/faces-config.xml

      Has this element:

          <name>ICEfaces core</name>

      And this file:

      /icefaces-2.0.0-alpha2/compat/core/build.javascript.xml

      References the name like this:

          <ordering>
              <before>
                  <name>ICEfaces core</name>
              </before>
          </ordering>

      Eclipse indicates that the XML Schema for javaee:java-identifierType doesn't permit spaces. Also:

      <render-kit>
      <render-kit-class>com.icesoft.faces.component.CompatDOMRenderKit</render-kit-class>
      </render-kit>

      produces the following error for a user with Eclipse:

      cvc-complex-type.2.4.a: Invalid content was found starting with element 'render-kit'. One of '{"http://
      java.sun.com/xml/ns/javaee":action-listener, "http://java.sun.com/xml/ns/javaee":default-render-kit-id, "http://
      java.sun.com/xml/ns/javaee":message-bundle, "http://java.sun.com/xml/ns/javaee":navigation-handler, "http://
      java.sun.com/xml/ns/javaee":view-handler, "http://java.sun.com/xml/ns/javaee":state-manager, "http://
      java.sun.com/xml/ns/javaee":el-resolver, "http://java.sun.com/xml/ns/javaee":property-resolver, "http://
      java.sun.com/xml/ns/javaee":variable-resolver, "http://java.sun.com/xml/ns/javaee":resource-handler, "http://
      java.sun.com/xml/ns/javaee":system-event-listener, "http://java.sun.com/xml/ns/javaee":locale-config, "http://
      java.sun.com/xml/ns/javaee":resource-bundle, "http://java.sun.com/xml/ns/javaee":application-extension,
      "http://java.sun.com/xml/ns/javaee":default-validators}' is expected.

        Activity

        Hide
        Deryk Sinotte added a comment -

        We need to validate any and all of our included .xml files to ensure that they work with Eclipse.

        Show
        Deryk Sinotte added a comment - We need to validate any and all of our included .xml files to ensure that they work with Eclipse.
        Hide
        Deryk Sinotte added a comment -

        In the faces-config.xml files for core and compat/core, I've changed

        <name>ICEfaces core</name>

        to

        <name>ICEfacesCore/name>

        so that we are compliant with regards to spaces in the name. In the faces-config for compat/samples/component-showcase, I moved the <render-kit> section from being a child of <application> to a peer to align with the schema.

        Show
        Deryk Sinotte added a comment - In the faces-config.xml files for core and compat/core, I've changed <name>ICEfaces core</name> to <name>ICEfacesCore/name> so that we are compliant with regards to spaces in the name. In the faces-config for compat/samples/component-showcase, I moved the <render-kit> section from being a child of <application> to a peer to align with the schema.

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Deryk Sinotte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: