Scrollable in dynamic dataTable error:
This is my code:
Code: Select all
<p:dataTable rendered="#{casousobeanteste.visaoGrid}" id="grid_form_tab_#{aba.id}" var="linha" value="#{aba.listaObjetoAba}" rows="10" scrollable="true"
rowKey="#{linha.id}" selectionMode="single" scrollWidth="500" scrollHeight="310" selection="#{aba.objetoAba}">
<p:ajax event="rowSelect" update="@form" />
<p:columns value="#{aba.elementos}" var="colunas" style="width:125px;" columnIndexVar="colIndex">
<f:facet name="header">
<h:outputText value="#{colunas.nome}" />
</f:facet>
<h:outputText value="#{linha[colunas.propriedade]}" />
</p:columns>
</p:dataTable>
what might be happening?
I already changed the parameters scrollWidth,scrollHeight and scrollable
But I had no success.
I wish the header and the data were rendered with the same size.
And the grid can have 100% width would be perfect.
thank you