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>

[1341 byte] By [RashidAlia] at [2007-11-26 19:22:15]
# 1
Im not sure exactly what your problem is because i couldn't follow.. But I think your asking for is that you table changes when you change your select box? if so in your setCurrentCategory() just prepare your datatable from that method.
jbayugaa at 2007-7-9 21:42:38 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...