【发布时间】:2014-02-12 02:09:58
【问题描述】:
我有三个托管 bean:一个会话范围 (S) 和两个视图范围 (A,B)。 我想在 S 和 B 中使用 A 的功能。 但问题是在会话范围内注入视图范围 bean 是不可能的。
The scope of the object referenced by expression #{a}, view, is shorter than the referring managed beans (s) scope of session
我不想复制 A 的功能。 有什么想法吗?
【问题讨论】:
标签: jsf jsf-2 dependency-injection view-scope session-scope