I wish I could supply screen shots to other uses for this.
What I’m trying to do is get data back from from a List<Object> used to populate a .jsp
using…
<c:forEach var=”allVar” items=”#{uwrChecklistsBean.checklistElementsList}”>
<h:panelGrid border=”1″ columns=”3″>
<h:inputText id=”checklistNameId” size=”10″ maxlength=”10″ value=”#{allVar.checklistName}” />
<h:inputText id=”checklistDueDateId” size=”10″ maxlength=”10″ value=”#{allVar.checklistDueDate}” />
<h:inputText id=”checklistCompletedDateId” size=”10″ maxlength=”10″ value=”#{allVar.checklistCompletedDate}” />
</h:panelGrid>
</c:forEach>
I use a class to populate the elements in the forEach. It’s pretty simple with 3 String items.
In my backing bean, I have…
private List<ChecklistElements> checklistElementsList;
my (simplified) getter for populating this list is as follows:
public List<ChecklistElements> getChecklistElementsList() {
ArrayList<ChecklistElements> al = new ArrayList<ChecklistElements>();
.
.
.
return al;
}
When I submit the form back to the backing bean, checklistElementsList is null. Since I populated it with the getter (getChecklistElementsList()), and it displays on the screen, I can’t understand why, when I get back to the backing bean, checklistElementsList is null.