2 Replies Latest reply on Apr 8, 2010 8:48 PM by Dirk Reske

    Must propery names unique?

    Dirk Reske Newbie

      Hello,


      I'm quite new to seam.
      First: It looks really cool :)


      But one question is left at the moment.
      When I annotate fields with @DataModel, @In, ... have their names to be unique application wide?


      If a have:




      @Name("beanA")
      public class BeanA {
        @DataModel 
        private List<User> searchResults;
      }
      
      @Name("beanB")
      public class BeanB {
        @DataModel 
        private List<Product> searchResults;
      }





      And I access

      #{searchResults}

      from a view? Which do I get? How to control this?


      thanks
      Dirk