JSF : downgrading JSF
I'm a JSF beginner, but I am already in a project where I have to use the
latest Web Logic Server (Oracle). What I have known is that even the
latest Web Logic Server doesn't support JSF 2.2, so I want to downgrade my
JSF to 2.1.
I'm currently using Netbeans, and tried the following
Changed the faces-config.xml's faces-config tag content from 2.2 to 2.1 2.2
<faces-config version="2.2"
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://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/web-facesconfig_2_2.xsd">
2.1
<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_2_1.xsd"
version="2.1">
Added the dependencies such as jsf-api, jsf-impl (group id :
com.sun.faces) version 2.1.xx (I tried to use the latest) using Maven.
But after I call facesContext.getPackage().getImplementationVersion(),
which is a method to get the current JSF version, it only shows 2.2.0 as
the result, which means I haven't been able to downgrade the JSF.
Oh yeah, I'm currently using Java EE 7, which I don't want to downgrade,
so if it's possible, I would like to downgrade only the JSF while
maintaining the Java EE to the current version (7.0).
No comments:
Post a Comment