Details
-
Bug
-
Resolution: Done
-
Major
-
2.0.0.Beta1
-
None
Description
Hello,
I develop currently an JSF application. My web.xml has an entry
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/faces-config.xml
</param-value>
</context-param>
I get an error in the Red Hat Developer Studio:
================================================
error: Attribute param-value references to /WEB-INF/faces-config.xml that is not a valid faces config file
================================================
But what is wrong ? The file faces-config.xml is valid and begins with
<?xml version="1.0"?>
<!DOCTYPE faces-config SYSTEM "web-facesconfig_1_1.dtd">
<faces-config>
The DTD-Definition web-facesconfig_1_1.dtd is located in the same folder (under WEB-INF).
The second problem occurs with faces-config.xml if we open one. I miss the 'tree' view to edit more easier the faces config file. If I paste
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
instead of SYSTEM "web-facesconfig_1_1.dtd", all views are available. But PUBLIC DTD-Definition can be problematical in the offline mode (intranet applications).
Best regards.
Oleg Varaksin