I'm trying to use the colspan attribute of p:column under a datagrid. My code:
Code: Select all
<p:dataGrid id="dashboardDG" var="widget" value="#{dashboardBean.droppedWidgets}" rowIndexVar="w"
rendered="#{not empty dashboardBean.droppedWidgets}" columns="#{dashboardBean.dashboardLayoutValue.numberOfColumns}" rows="#{dashboardBean.dashboardLayoutValue.numberOfRows}" styleClass="crmWidget">
<p:column colspan="#{widget.colSpan}" >
<crm:widget header="#{widget.name}" value="#{widget}" closable="true" toggleable="false" widgetVar="ww"
styleClass="crmWidgetColumn crmWidgetColumn#{w} crmWidgetColumnCount#{fn:length(dashboardBean.droppedWidgets)}">
<p:ajax event="close" listener="#{dashboardBean.onWidgetClose}" update="dropArea availableWidgets" />
</crm:widget>
</p:column>
</p:dataGrid>
I'm using 3.RC1 - snapshot!
Regards,
Davide