I think what pete is getting at is that you are currently trying to outject a Page scoped
object from a session scoped bean.
By putting the outjection and factory in a separate page scoped bean (the page scoped
manager) you are splitting the problem up. Your page scoped users are not being generated
from a session scoped bean and you aren't having to deal with two scopes in the same
bean.
Something like :
| @Name("userList")
| @Stateful
| @Scope(PAGE)
| @Restrict("#{identity.loggedIn}")
| public class UserList implements UserListInterface {
|
| @Out
| @DataModel("users")
| private List<User> users;
|
| @Factory("users")
| public List<User> getUsers() { }
|
| }
|
Cheers,
Andy
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112792#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...