If I set the attribute "scrollable = true" in the PrimeFaces file, it scrolls vertically. But is it possible to scroll this table horizontally?
Main surfaces support horizontal datatable scrolling. Just specify it like this:
<p:dataTable scrollable="true" scrollWidth="700">
Try this (XY);Panel;
<h:panelGroup id="tbl" style="width:100%;overflow:auto;">
data table;
<p:dataTable paginatorPosition="top" scrollable="true" scrollHeight="300" style="width:100%" resizableColumns="true" lazy="true" >
try it
<p:dataTable resizableColumns="true" tableStyle="width:auto" >
Hope this helps :)