私はSpring Boot 1.2.4(web、security、data-jpa)、Primefaces 5.2、JSF 2.2(Mojarra 2.2.11)を使用したWebアプリケーションをxml構成ファイルなしで持っています。Spring Bean el resolver の faces-config.xml のみ:
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.2"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
<application>
<el-resolver>
org.springframework.web.jsf.el.SpringBeanFacesELResolver
</el-resolver>
<!--el-resolver>
org.primefaces.application.exceptionhandler.PrimeExceptionHandlerELResolver
</el-resolver-->
</application>
<!--factory>
<exception-handler-factory>
org.primefaces.application.exceptionhandler.PrimeExceptionHandlerFactory
</exception-handler-factory>
</factory-->
</faces-config>
そしてすべて正常に動作します。今、私はプライムフェイス例外ハンドラで ViewExpiredException を処理したい: http://www.primefaces.org/docs/api/5.2/org/primefaces/application/exceptionhandler/PrimeExceptionHandlerELResolver.html
私の質問は、faces-config.xml に別の el-resolver を登録できますか? いいえの場合、どうすれば問題を解決できますか?
前もって感謝します。
編集 :
別のアプロッシュを使用することにしました。Ajax 呼び出しのセッション タイムアウト処理に感謝します