how to get a datatable when a vale is entered in inputTextfield
hi,
I have a jsf page.In that i have one textfield for employee code
If a letter is entered on that textfield,the table in the jsf page must show the employees list.to retrieve the list I have method in session bean
how to write the valueChange event.
# 1
A valueChangeListener isn't intented for that use. It's a serverside thing which gives you the ability to get the old as well as the new input value when you submits the form.
Do you want to do it asynchronous? Or does the form have a submit button?
If asynchronous, use AJAX (google around for "ajax suggest" or "ajax autocomplete"). If on submit, just write data loading logic in that method of the backing bean.