I am using a PrimeFaces dataTable. I need the column headers to word-wrap and be resizable. Here are my issues:
- When I do
styleClass="wrap" resizableColumns="true"
, only resizable is working. - When I do
styleClass="wrap" resizableColumns="false"
, only word-wrap is working.
My code is:
<p:dataTable id="transitCycleHighLevelDataTable" var="record"
value="#{transitCycleMB.highLevel}" rowKey="#{record.group}"
paginator="true" paginatorPosition="bottom" rows="10"
styleClass="wrap" resizableColumns="true" scrollable="true"
scrollWidth="100%" scrollHeight="250"
rowsPerPageTemplate="10,20,50"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {RowsPerPageDropdown} {NextPageLink} {LastPageLink} {Exporters}"
currentPageReportTemplate="(Displaying {startRecord} - {endRecord} of {totalRecords}, Page: {currentPage}/{totalPages})">