Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Provide Filter Criteria and Display Table

JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:


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
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic