我目前的代码是:
<p:dataTable value="#{bean.studentList}" var="student">
<p:columns var="column" value="#{bean.columnList}"
rowspan="#{column.rowSpan}" colspan="#{column.colSpan}">
<f:facet name="header">
<p:outputLabel value="#{column.columnName}" />
</f:facet>
</p:columns>
</p:dataTable>
columnList 是一个列列表,它包含
[Column [columnName=SId, rowSpan=3, colSpan=1], Column [columnName=SName, rowSpan=3, colSpan=1], Column [columnName=SBranch, rowSpan=3, colSpan=1], Column [columnName=Sem, rowSpan=1, colSpan=4], Column [columnName=Sem1, rowSpan=1, colSpan=2], Column [columnName=Sem2, rowSpan=1, colSpan=2], Column [columnName=Sub1, rowSpan=1, colSpan=1], Column [columnName=Sub2, rowSpan=1, colSpan=1], Column [columnName=Sub1, rowSpan=1, colSpan=1], Column [columnName=Sub2, rowSpan=1, colSpan=1]]
我在这里想念什么?