DataTable scrollable render error

UI Components for JSF
Post Reply
Coelho
Posts: 15
Joined: 27 Sep 2011, 17:17

22 Nov 2011, 13:10

Hi...
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>



Image

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Nov 2011, 13:11

You can't use p:columns with scrollable datatable at the moment. Not tested, not officially supported.

You can create an enhancement request.

Coelho
Posts: 15
Joined: 27 Sep 2011, 17:17

22 Nov 2011, 13:48

Ok Optimus...
I also tried using ui: repeat and column.
but render nothing.
ui: repeat does not work too?

Code: Select all

<ui:repeat value="#{aba.elementos}" var="colunas">
   <p:column headerText="#{colunas.nome}" style="width:125px">  
		<h:outputText value="test" />
   </p:column>  
</ui:repeat>
How can I create a dataTable with dynamic scroll?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests