Primefaces dataTable with rowspan

后端 未结 4 863
庸人自扰
庸人自扰 2021-01-04 04:48

I\'m quite new with JSF primefaces 3.1. I try to build a \"complex\" table and I cannot find a good solution using dataTable (I need a sorting component).

I would l

4条回答
  •  隐瞒了意图╮
    2021-01-04 05:34

    I had the same problem : primefaces (or richfaces) offers rowspan only for header and footer.

    Then I tried to use the icefaces ace:datatable component and it run by adding only one attribute in the colum(s) you want to be "rowspanable" : ace:column : groupBy="#{bean.field}".

    You give as usual a list of rows and this component generates all rowspan automatically (I think by autodetecting neigbourhood of equals values) in the generated html table.

    It runs altogether with primefaces components : at this moment I have primefaces outputlabel in the icefaces datatable cells ant this icefaces datatable is inside a primefaces panel.

提交回复
热议问题