• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic column value display using var of t:dataTable  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,
I would like to print the dynamic coulmn value using the t: dataTable . Is there any way by using var of dataTable we can display the collection value on screen. I dont want to display the text using var.name and var.address kind. I want to dynamically itereate over the row to get the values. Is there any simple way? Please let me know. Thanks. Pradip
 
pradip p sardar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<t:dataTable value ="#{myBean.list}" var = "result" >
<t:columns value ="#{myBean.headerList}" var= "headVal">
<f:facet name ="header" >
<hutputText value = "#{headVal.label}">
</f:facet>
<hutputText value = "#{???}">

</t:columns>
</t:dataTable>

At ??? how can i display the attributes against the respective label using result variable of datatable??? Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!