NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

SOLVED: Tables with dynamic number of columns?

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
janpla



Joined: 26 Aug 2010
Posts: 54

PostPosted: Fri Jun 15, 2012 7:20 am    Post subject: SOLVED: Tables with dynamic number of columns? Reply with quote

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

PostPosted: Fri Jun 15, 2012 10:54 am    Post subject: Reply with quote

I found the answer myself: use PrimeFaces, the p:dataTable tag does it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo