everytime i change value in the dropdown, i have to hide dataTable in the page, which is NOT working
what i observed is that change in the value for drop down, i can send ajax request only to hide and display individual components like textbox
what it's not working for the dataTable
It MIGHT work(i am not sure, still haven't tried), if i use a4j:outputPanel, but if i use this one then for every ajax request in that page refreshes the dataTable, which i don't want
What it sounds like you should be doing is updating the datatable based upon the selection
from the menu, i.e. select Department A, get list of employees from department A. I don't
get the show/hide thing, this sounds like a javascript hangover.
after selecting the value from dropdown, i will click on "Search" button to show the list in dataTable
I am displaying the results only after clicking on the search button and not after selecting the value in drop down
What i want to do is send ajax request based on the change of value selected from dropdown
and the ajax request basically hides the dataTable
Brendan, you understood correctly
But your solution is not working for me ( i am using RichFaces for your information )