-
1. Re: How to create dynamic datatable with dynamic column group?
littlealan Mar 31, 2010 12:56 PM (in response to littlealan)I also tried in the demo example, add the rowspan and colspan in the Facet class, see if the rich:columns can pick the attributes up:
public class Facet {
private String header;
private String footer;
private int rowspan;
private int colspan;}
//In DataTableScrollerBean
public void initColumnsHeaders() {
columns.clear();
String header;
String footer = "";
header = "Chevrolet";
Facet facet = new Facet(header, footer);
facet.setRowspan(2);
columns.add(facet);}
<rich:columns value="#{dataTableScrollerBean.columns}" var="columns"
index="ind" id="column#{ind}" sortBy="#{model[ind].price}" sortOrder="#{columns.sortOrder}">But still not works. It just ignore the rowspan attributes. Please help.
-
2. Re: How to create dynamic datatable with dynamic column group?
ilya_shaikovsky Apr 1, 2010 4:14 AM (in response to littlealan)It ignores rowSpan attribute as it should be defined at column tags. And you just defines it in some object about columns just not care. for columns like: rowSpan="#{column.spanValue}" where column is var variable of rich:columns.