Search code examples
richfacesseamjsf-1.2

Dynamic columns in e.g rich:datatable?


I have the following problem: I use a a form with dynamic labels that each has a corresponding inputfield. This form can be sent multiple times. I want a table with a dynamic number of columns were each column has one label from the dynamic form as it's header. Now for each time the form is sent another row should be added with each input under it's corresponding header.

I've tried around some with the various components but have not been getting any useful results...

Basically what I have is one list with column headers and each element in that list has x values that should be listed under it.

I am using seam 2.2.2, richfaces 3.3.3 and jsf 1.2.


Solution

  • rich:columns does the job, but double read the notes in the documentation to avoid common pitfalls.