[jboss-user] [JBoss Seam] - more the one DataModel in one bean

macq do-not-reply at jboss.com
Thu Feb 22 04:28:33 EST 2007


how can I implement more the one DataModel in one bean ?

what should I add to make it work

  | @DataModel
  | private List<UserGroup> ugList;
  | 
  | @DataModelSelection
  | private UserGroup sug;
  | 
  | @DataModel
  | private List<Role> rolesList2;
  | 
  | @DataModelSelection
  | public Role srole2;
  | 
  | @PersistenceContext
  | private EntityManager em;

the error I get:

  | ERROR [[/expert]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.IllegalStateException: Missing value() for @DataModelSelection with multiple @DataModels

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

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



More information about the jboss-user mailing list