The moose likes JSF and the fly likes Provide Filter Criteria and Display Table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Provide Filter Criteria and Display Table" Watch "Provide Filter Criteria and Display Table" New topic
Author

Provide Filter Criteria and Display Table

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have a table. The first column is "code" (for example, ME or VA )and the second column is "description" (for example, Maine or Virginia).

I have used the <h:dataTable ...> based on data stored in the ArrayDataModel (I can also use the ListDataModel) to display the table without problem.

If users enter a letter or letters in the "Filter Criterion" text field and click on the "FIND" button, I would like the table to display the US states that start with that letter or letters. For example, it users enter "ma", the table displays:

ME MAINE
MH MARSHALL ISLANDS
MD MARYLAND
MA MASSACHUSETTS

I wonder if the code has been made re-usable. I did a Google search and saw the Apache Beehive Project "data grid" doing something similar to what I am looking for.

Anyway, I need your guidance. Thanks
 
IntelliJ Java IDE
 
subject: Provide Filter Criteria and Display Table
 
Threads others viewed
Add filter like MSExcel to SWT table object.
Sorting in JavaScript
And how do I do this?
Can I make Select Box scroll to item when it has focus?
JSP two pages
developer file tools