NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
janpla
Joined: 26 Aug 2010 Posts: 54
|
Posted: Fri Jun 15, 2012 7:20 am Post subject: SOLVED: Tables with dynamic number of columns? |
|
|
I am creating an application that needs to return data in a table, but I don't know the exact number of columns at design time; the h:dataTable tag doesn't support this at all, and h:panelGrid, where one can specify the number of columns, is no use either, really, because then you loose all the functionality you have in h:dataTable.
Some time ago, while I was looking for a way to upload files in JSF, I came across http://balusc.blogspot.co.uk/2009/12/uploading-files-with-jsf-20-and-servlet.html, which talks about creating custom components and renderers. Perhaps that is the way to proceed?
Has anybody here already cracked this? And are they willing to share the secret? Otherwise, I'll have to find a solution myself, and then I'll post it here, of course.
Last edited by janpla on Fri Jun 15, 2012 10:58 am; edited 1 time in total |
|
| Back to top |
|
 |
janpla
Joined: 26 Aug 2010 Posts: 54
|
Posted: Fri Jun 15, 2012 10:54 am Post subject: |
|
|
| I found the answer myself: use PrimeFaces, the p:dataTable tag does it. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|