I am using primefaces 5.3 and adamantium theme & layout.
I have a primefaces datatable using reflow attribute having 9 columns, when zoom-in the table should show in column stacked mode but result is not as it shown in the adamantium live preview. below is my dataTable sample code.
Code: Select all
<p:dataTable id="empTableId" var="_empDetails"
value="#{empDetailsListBean.emptDetailsList}" reflow="true"
rowKey="#{_empDetails.empId}" widgetVar="empTable"
selection="#{empDetailsListBean.selectedRow}" rows="8"
rowIndexVar="rowIndex">
<p:column selectionMode="single" style="width:4%;" />
<p:column headerText="SI<br/> No" style="width:4%; ">
<h:outputText value="#{rowIndex+1}" />
</p:column>
<p:column headerText="Employee <br/> Code"
style="width:11% ; padding-left:5px">
<h:outputText value="#{_empDetails.empCode}" styleClass="wrap" />
</p:column>
<p:column headerText="Employee <br/> Name" style="width:13% ;">
<h:outputText value="#{_empDetails.empName}" styleClass="wrap" />
</p:column>
<p:column headerText="Status" style="width:14% ; ">
<h:outputText value="#{_empDetails.empStatus}" />
</p:column>
<p:column headerText="Joining<br/> Date"
style="width:10% ; text-align: center">
<h:outputText value="#{_empDetails.joiningDate}">
<f:convertDateTime pattern="dd MMM yyyy" locale="en_US"
type="both" timeZone="IST" />
</h:outputText>
</p:column>
<p:column headerText="Resigned <br/> Date"
style="width:11% ; text-align: center">
<h:outputText value="#{_empDetails.resignedDate}">
<f:convertDateTime pattern="dd MMM yyyy" locale="en_US"
type="both" timeZone="IST" />
</h:outputText>
</p:column>
<p:column headerText="Remarks" style="width:21% ; ">
<h:outputText value="#{_empDetails.remarks}" styleClass="wrap" />
</p:column>
</p:dataTable>
any idea, kindly help me out.