This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding rows to a datatable, depending on the array size  RSS feed

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a situation like this:

In my managed bean, i have an array of size 5.

In the faces jsp page, I have a datatable, which refers to this array. I need to display five rows in the datatable. How do I do this?



This displays only one row.
Is there a need for iteration? If so, how do I do it?
 
vof eka
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iteration over the dataModel is handled automatically by the dataTable component! please read the documentation about the dataTable for more information, look at the "value" and "var" attributes of the h ataTable...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!