[jboss-user] [JBoss Seam] - Seam Injection of Collections into backing beans
ngeadah
do-not-reply at jboss.com
Mon Sep 25 19:52:05 EDT 2006
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}"/>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974057#3974057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974057
More information about the jboss-user
mailing list