resizableColumns doesn't work with scrollable DataTable

UI Components for JSF
Post Reply
francesco.strazzullo
Posts: 54
Joined: 25 Nov 2011, 10:14

06 Dec 2011, 19:09

Hi all,
resizable Columns doesn't work with scrollable dataTable and a columnGroup (header).

Example:

Page:

<h:form>

<p:dataTable
var="value"
scrollable="true"
resizableColumns="true"
value="#{tableBean.list}">

<f:facet name="header">
Scrollable and Resizable with colGroup
</f:facet>

<p:columnGroup type="header">
<p:row>
<p:column style="width:150px;" rowspan="2" headerText="A" />
<p:column style="width:300px;" colspan="2" headerText="B" />
<p:column style="width:300px;" colspan="2" headerText="C" />
<p:column style="width:300px;" colspan="2" headerText="D" />
<p:column style="width:300px;" colspan="2" headerText="E" />
<p:column style="width:300px;" colspan="2" headerText="F" />
<p:column style="width:300px;" colspan="2" headerText="G" />
<p:column style="width:300px;" colspan="2" headerText="H" />
<p:column style="width:300px;" colspan="2" headerText="I" />
</p:row>

<p:row>
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
<p:column style="width:150px;" headerText="A" />
<p:column style="width:150px;" headerText="B" />
</p:row>
</p:columnGroup>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

<p:column style="width:150px;">
#{value}
</p:column>

</p:dataTable>

</h:form>

Bean:

public class TableBean implements Serializable {

public TableBean(){
list = new ArrayList<Integer>();
for(int i=0;i<10;i++){
list.add(i);
}
}

private List<Integer> list;


public List<Integer> getList() {
return list;
}

}
Last edited by francesco.strazzullo on 06 Dec 2011, 19:33, edited 1 time in total.
Primefaces: 3.5
Mojarra: 2.1.18
Tomcat: 7.0.20

francesco.strazzullo
Posts: 54
Joined: 25 Nov 2011, 10:14

06 Dec 2011, 19:10

Someone has some workaround to fix this?
Primefaces: 3.5
Mojarra: 2.1.18
Tomcat: 7.0.20

pjc
Posts: 9
Joined: 07 Jul 2011, 10:24

28 Feb 2012, 15:58

No workaround of fix for this issue ?

xbellox
Posts: 20
Joined: 13 Jan 2012, 20:12

11 Apr 2012, 15:21

I'm trying some pure javascript solution... But it really would be nice a built in fix.
PrimeFaces 3.3.1 | Tomcat 7.0.29 | MyFaces 2.1.8 (JSF 2.1)
Eclipse Indigo SR2 | JDK1.7 | Java EE 6 | Oracle 10.2
Windows 7 | Google Chrome
--
Eduardo Bello

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

11 Apr 2012, 16:50

See labs showcase scrollable table demo, there have been many improvements in 3.3 about this.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests