0

I'm trying to make a datatable showing column as easy as possible - like auto width.

It misaligns the columns compared to the header, like these:

example

My code looks like this:

<p:dataTable id="datalist2" value="#{item.formItemCollection}"
    var="item2" scrollable="true" scrollHeight="100" tableStyle="width:auto" 
    emptyMessage="#{bundle.EmptyMessage}" >
<ui:include src="/view/formItem/formItemListRow.xhtml">
    <ui:param name="rowItem" value="#{item2}"/>  
    <ui:param name="controller" value="#{formItemController}"/>  
</ui:include>
Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
v-peter
  • 1
  • 2

0 Answers0