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

    more the one DataModel in one bean

    macq

      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