Spring 3 と JSF 2 を使用してアプリを作成しています。 https://github.com/michail-nikolaev/primefaces-spring-scopesのカスタム ViewScope 実装を使用しました。カスタムスコープを登録しました。
問題は、ビュー スコープ Bean が使用されているページにアクセスしようとすると、次の例外が発生することです。
INFO - ViewScope - Creating bean {editUser}
INFO - EditUser - EditUser() - class[com.myapp.beans.EditUser@f0ac4], rewId[null]
INFO - ViewScope - registerDestructionCallback for bean editUser
INFO - ViewScope - Session event bound sessionBindingListener
INFO - ViewScope - Bean created {com.myapp.beans.EditUser@f0ac4}
2013-03-18 00:30:30 com.sun.faces.lifecycle.ProcessValidationsPhase execute
WARNING: /editUser.xhtml @10,78 value="#{editUser.rewId}": The class '$Proxy115' does not have the property 'rewId'.
javax.el.PropertyNotFoundException: /editUser.xhtml @10,78 value="#{editUser.rewId}": The class '$Proxy115' does not have the property 'rewId'.
Bean がセッション スコープの場合、すべて正常に動作します。
私はあなたの助けに感謝します。