5 Replies Latest reply on Sep 26, 2006 10:40 AM by gavin.king

    Seam Injection of Collections into backing beans

      How would one achieve injection of a Collection of Seam components into a backing bean? I know I can setup outjection of a List of components using an @DataModel annotation (coupled with an @Factory method it works great). I want to do injection...

      i.e. Assume a Seam component exists (MyComponent). I would like my backing bean to have:

      @In
      private List<MyComponent> myComponents;
      


      Assuming this is supported, how should my JSF be setup to inject correctly? Would something similiar to this work?

      <h:inputText id="total" value="#{MyComponent[0].attribute}"/>