-
1. Re: How to create RichDataTable with dynamic columns
ishabalov Aug 10, 2007 8:20 PM (in response to thiagu.m)You better use rich:dataGrid with specified number of columns. But you need to transform you model to somethin like
dev
raj
kavi
35
14
15
and that use rich:dataGrid columns="3", it will produce
dev raj kavi
35 14 14
etc. -
2. Re: How to create RichDataTable with dynamic columns
thiagu.m Aug 11, 2007 9:38 AM (in response to thiagu.m)Thank u for your replay ishabalov
now i can able to display the value in column wise by using "rich:dataGrid"
but it i need to display this information in a table format, i meant name, id, age will be displayed in a separate cells within single column
but when i use "rich:dataGrid", i can't display this information in a separate row. All the information will be displayed in a single cell
i give u my sample code here
-<rich:dataGrid value="#{results}" var="user" id="grid" columns="#{results.size}"> <h:outputText value="#{user.name}"/> <h:outputText value="#{user.id}"/> <h:outputText value="#{user.age}"/> </rich:dataGrid>
the "results" is the ResultList of data form my session bean
and i have one more query
it is possible to data in a "subTable" format by using "rich:dataGrid"
i meant------------------------------------------ Raj Kavi ------------------------------------------ Personal TN AP Information ------------------------- 30000 10000 ------------------------------------------- Official India US Information ------------------------ 5 9 -------------------------------------------
Like this,
i need to map the relevant information with those category
it is possible by using "rich:dataGrid" component , this category information also from ResultList .
By
thiagu.m -
3. Re: How to create RichDataTable with dynamic columns
thiagu.m Aug 13, 2007 7:50 AM (in response to thiagu.m)RichFace have any component similar to t:columns (from MyFaces tomahawk lib)
it supports columns iteration in the dataTable ,
i think this component is resole my problem
Thiagu.M