Im using a CellTable to display my data. But my data has fields that is a collection of string. I wonder if there's any recommendation for this purpose. What do you do in this case?
Asked
Active
Viewed 52 times
0
-
You must find out first, what data you have, and how *you* want to display the data. Is there just one collection of strings, and do you want to display each string in the collection in its own column? Is the collection sorted at all? Does it have a fixed length... etc. – Chris Lercher May 15 '12 at 13:27
-
@ChrisLercher What i want is display a collection of strings in a cell of cellTable. I just dont have any idea about this part :| – ducnh May 15 '12 at 13:37
1 Answers
2
You have to make a Cell
(easiest is to extend AbstractCell
as you only have to implement the reder
method) that displays your data (i.e. serialize it to HTML).

Thomas Broyer
- 64,353
- 7
- 91
- 164
-
Thank you. I made my own custom cell that matches my demand. Quite simple but that's enough for me. If anyone want to take a look at the code, visit http://pastebin.com/KzSW9Tdc – ducnh May 17 '12 at 09:45