Hi, am new to
JSF so apologies if this question is a little broad.
In my app, I've one page (for simpliclities sake). When i click a button, a new row should be added automatically to a table
at the bottom of the page. The button submit submits back to the
JSP. The JSF bean (myBean) involved updates
a list (rowList) in the bean to add a new entry to it (i.e. which represents the new table row being added).
So when i click the button, it should update the list in the bean and
then the page should refreshes showing the new row. But whats happening is that the first click
doesn't add a new row (even though it's added to the list in my bean). If I click a 2nd time then the row is added.
I'm using JSTL to render the page (code fragment below)
<c:forEach var="individualRow" items="${myBean.rowList}">
..iterate over the list are render each row's data
</c:forEach>
Has anyone seen an issue broadly similiar to this before? i.e. it's as if the value of "items" (in the jstl) is out
of date.
Any help would be great,
thanks, Ro