0
votes

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.

2

2 Answers

0
votes

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

0
votes

The dynamic columns sounds pretty straightforward, you could set your input and a boolean if that input is set and then set the column to equal that input and render it with the boolean. But you've lost me with the added rows, can you elaborate?