How to collect submitted values of a List<T> in JSF?
问题 I have a bean with a List<T> : @Named @ViewScoped public class Bean { private List<Item> items; private String value; @Inject private ItemService itemService; @PostConstruct public void init() { items = itemService.list(); } public void submit() { System.out.println("Submitted value: " + value); } public List<Item> getItems() { return items; } } And I'd like to edit the value property of every item: <h:form> <ui:repeat value="#{bean.items}" var="item"> <h:inputText value="#{bean.value}" /> <