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

jsf - dataTable with external filter

efrat sh
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm trying to find a way to use an external filter to my dataTable, I have a dataTable with a few columns (id, type, name etc...), I want to add an external filter which looks like a set of checkboxes for all the types, for example if my dataTable lokk like:

id type name
1 type1 name1
2 type1 name2
3 type2 name3

so my filter will look like the following:
[v] type1 (2)
[v] type2 (1)

Then, when user presses on type1 checkbox I want to display all the rows where type is type1, if type2 checkbox is also selected then I want to display also all rows where type is type2 and so on.....

Could you recommend the best way to do so in JSF 2 ???

Thanks, Efrat
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic