2 Replies Latest reply on Mar 7, 2007 2:21 PM by Fang Cheng

    more the one DataModel in one bean

    Maciej Trela Newbie

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

      what should I add to make it work

      private List<UserGroup> ugList;
      private UserGroup sug;
      private List<Role> rolesList2;
      public Role srole2;
      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