[jboss-user] [JBoss Seam] - Re: How do I reload a Data Model on a SessionBean everytime

Andy Gibson do-not-reply at jboss.com
Thu Dec 13 23:01:32 EST 2007

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() { }
  | }



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112792#4112792

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112792

More information about the jboss-user mailing list