This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes Dynamic column value display using var of t:dataTable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Dynamic column value display using var of t:dataTable" Watch "Dynamic column value display using var of t:dataTable" New topic
Author

Dynamic column value display using var of t:dataTable

pradip p sardar
Greenhorn

Joined: Nov 24, 2009
Posts: 5
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

Joined: Nov 24, 2009
Posts: 5
<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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Dynamic column value display using var of t:dataTable
 
Similar Threads
calling action method on data table row click
dataTable help
Displaying total Number of columns in Datatable
Iterate arraylist with c:forEach
Creating datatable dynamically