JSFのバージョンアップについて【メモ】

仕事でJSFのバージョンアップを実施することになったので、調べたことのメモと参考にしたサイトのURLを載せます。

1. JSF 1.2 JARを/WEB-INF/lib(存在する場合)から削除する
2. JSF 2.3JARを落とす 
3. faces-config.xmlJSF 2.3仕様に準拠するようにのルート宣言を更新

<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_3.xsd"
    version="2.3">

4.依存関係を置き換え、新しいバージョンのJSFを使用

<dependency> 
    <groupId>com.sun.faces</groupId> 
    <artifactId>jsf-api</artifactId> 
    <version>2.3</version> 
</dependency> 

<dependency> 
    <groupId>com.sun.faces</groupId> 
    <artifactId>jsf-impl</artifactId> 
    <version>2.3</version> 
</dependency>

Apache MyFaces Extension Validator(extVal)で相関チェック - n-agetsumaの日記

[ThinkIT] 第4回:環境設定 (3/3)

Apache MyFaces - MyMemoWiki

クイックスタート - Apache MyFaces - Apache Software Foundation

JSF 1.2からJSF 2.0への移行

JSFを利用する場合