I have a Seam 2.2 JSF 1.2 application deployed on JBoss 5. I need to create a page with a complex, editable datatable; data is displayed across as well as down.
I have an employee:
Employee {
int id;
String name;
...
}
I have certification types:
Certs {
int id;
String certType;
...
)
and I have events of type Certs held by employees:
Events {
int id;
int employeeId;
int certId;
Date start;
Date end;
...
}
I need to display the data across by dynamically generated cert type (number of cert columns are not known til the user selects them), if multiple cert types are selected and an employee has no event for that cert type the cells for that cert type should be empty.
I can generate the correct format using rich:datatable with rich:columns and rich:column, but that's only display - I need to be able to edit the rows in place.
I'm working on generating the table in the backing bean using HtmlDataTable, but Seam does not play well with JSF binding.
The hardest bit for me to wrap my head around is making vertical data (an employee with related event information, one row for every event) horizontal (an employee event event event).
Anybody have any recommendations or advice on the best way to approach this efficiently?
I'll post what I've tried, but this is pretty long already, so I'll add more as needed.