Details
-
Type: Bug
-
Status: Closed
-
Priority: 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
-
ICEsoft Forum Reference:
-
Affects:Sample App./Tutorial
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.
/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.
We need to validate any and all of our included .xml files to ensure that they work with Eclipse.