5 Replies Latest reply on Sep 26, 2006 10:40 AM by Gavin King

    Seam Injection of Collections into backing beans

    ngeadah Newbie

      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:

      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}"/>