Primefaces DataTable - Filtering [column not filtering]?

CarsTable is the name of the datatable. Somehow its missing from the example, but the p:dataTable should have an attribute widgetVar="carsTable" . Onkeyup is the event that is firedafter you released a key.

It tells the carsTable to filter after you entered a new character.

Up vote 1 down vote favorite share g+ share fb share tw.

I am trying this example 'DataTable - Filtering'. Everything works except for the Search all fields: textbox that filters. When I enter characters to it it doesn't filter as in the example.

There is no errors or exceptions thrown. I don't undestand what onkeyup="carsTable.filter()" does in the code. Can someone explain this?

And any idea why it fails to filter java jsf datatable filtering primefaces link|improve this question edited Aug 3 '11 at 9:37cularis11.3k1128 asked Aug 3 '11 at 9:30Illep820115 68% accept rate.

CarsTable is the name of the datatable. Somehow its missing from the example, but the p:dataTable should have an attribute widgetVar="carsTable". Onkeyup is the event that is firedafter you released a key.

It tells the carsTable to filter after you entered a new character. So add the widgetVar="carsTable" attribute to p:dataTable and you are good to go. If you have a look at the PrimeFaces userguide, you will find the correct example.

Thank you for the answer and the user guide. Is there anyway I could use filterMatchMode="startsWith" to filter the text box in this section – Illep Aug 3 '11 at 10:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions