Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Controlling values in JSF.

 
Nagendra Shastry
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am very new to JSF field. I have a question. I have fetched some data from DB say I have data of 10 students out of which 5 guys have 60%+ marks. I want to display students with 60%+ marks on the browser. I want to control it in JSF or Iceface tag and I don't want to write any logic for sorting in backend. Can you please help out??
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18276
56
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Nagendra!

The core JSF does not provide any persistent data (database) services nor does it provide logic. It only supplies the MVC framework. So if you are relying only on core JSF, you cannot do this.

While there are limits, some extension tagsets for JSF such as RichFaces do provide limited control of presentation that allows altering the order of elements displayed in a RichFaces extendedDataTable so that you can click on a column header and the rows will be displayed sorted according to the values in that column.
 
Nagendra Shastry
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim..:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic