binding attribute not refresshed in h:dataTable
Hello,
I am new to this community. I have started to work with JSF. I have a JSF page that contains a drop down list and table. On changing the value of drop down list , the data in table is updated. the concerning part of the page is given below.
<h:form id="ListingForm">
<p align="right" >
<h:selectOneMenu id="StudentCategory" value="#{StudentListing.currentCategory}" onchange="submit()" >
<f:selectItems value="#{StudentListing.studentCategories}" />
</h:selectOneMenu>
<h:dataTable value="#{StudentListing.students}" var="student" binding="#{StudentListing.studentsData}" border="1" >
As you see I have binded <h:dataTable with a property of my bean. The concerning part of my bean is as
private HtmlDataTable studentsData;
This is an HtmlDataTable table. When some one clicks on any record in ><h:dataTable, the whole row is selected and appears in my next page.
But when i update the data in ><h:dataTable by changing the value in select menu. The binding attribute still represent the previous data. not to the current data.
I have searched it on many forums but could not find any answer.
Please Help me. I am stuck with my project.
Thanks,
Rashid Ali>

