• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying total Number of columns in Datatable

 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am planning on displaying the total number of columns in a Datatable, problem is that datatable is dynamic, it is passed a list that is retrieved from the database

this is the Datatable

<t:dataTable var="category" width="700" id="searchList"
rows="10" value="#{searchResult.jobs}">

the outputText is supposed to retrieve the length of value="#{searchResult.jobs}"> and display it on the same page as the datatable, Please hod do i implement this?
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you meant number of rows. Since that's not a repeating item, it wouldn't be appropriate to display it in the datatable itself, you'd normally output it in a separate control such as outputText.
 
Abiodun Adisa
Ranch Hand
Posts: 495
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
I think you meant number of rows. Since that's not a repeating item, it wouldn't be appropriate to display it in the datatable itself, you'd normally output it in a separate control such as outputText.


Yes i meant the number of rows, I have a outputText that would display the number of rows
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic