Datatable - resizableColumns doesn`t work

Components, Ajax Framework, Utilities and More.
Post Reply
lhanusiak
Posts: 15
Joined: 16 Jan 2011, 20:14

10 Jun 2011, 16:39

When datable has resizableColumns set on true, and columns have active sortBy and filterBy, than resizing columns not work.

Code: Select all

<p:dataTable   id="allusersTable" var="oneuser" resizableColumns="true"  emptyMessage="#{msg.noUserSelected}"  selection="#{editUser.selectedUser}"
                        onRowSelectUpdate="editUsersForm:formEditUser:displayUserDetails" onRowSelectComplete="detailUserDialog.show()"
                        value="#{usersToShow.users}" paginator="true"  paginatorPosition="bottom"  rows="8" selectionMode="single">
....
            <p:column  sortBy="#{oneuser.login}" filterBy="#{oneuser.login}">
               <f:facet name="header">
                  <h:outputText value="#{msg.login}" />
               </f:facet>
               <h:outputText style="width: 80px" value="#{oneuser.login}" />
            </p:column>
....
When I remove sortBy and filterBy attibutes, resizing work properly.

I use primefaces-3.0.M2-SNAPSHOT.jar

Can we use both functionality together?
Tomcat 7
Mojarra 2.1.10
PrimeFaces 3.4
Pretty Faces 3.2.1
Hibernate 4.0
Spring 3.0

max
Posts: 28
Joined: 17 Nov 2010, 15:55

17 Jun 2011, 16:32

I got same problem. I am using M1.

max
Posts: 28
Joined: 17 Nov 2010, 15:55

17 Jun 2011, 16:36

where do you get M2? the public site has only M1.

mbollman
Posts: 33
Joined: 07 Jun 2011, 10:29

17 Jun 2011, 17:34

3.0.M2 is the current snapshot.

Nightly snapsnots are available from here.

3man
Posts: 99
Joined: 16 Jun 2011, 16:13

21 Jul 2011, 08:47

Same thing is happen with pagination="true"

Code: Select all

<h:form id="frmContent" >
<h:panelGroup id="padding" layout="block">
<p:dataTable   id="allusersTable" var="oneuser" resizableColumns="true"  emptyMessage="#{msg.noUserSelected}"  selection="#{editUser.selectedUser}"
                        onRowSelectUpdate="editUsersForm:formEditUser:displayUserDetails" onRowSelectComplete="detailUserDialog.show()"
                        value="#{usersToShow.users}" paginator="true"  paginatorPosition="bottom"  rows="8" selectionMode="single">
....

           <p:ajax event="colResize" update="frmContent:padding" /> <<<<< ADDED


            <p:column  sortBy="#{oneuser.login}" filterBy="#{oneuser.login}">
               <f:facet name="header">
                  <h:outputText value="#{msg.login}" />
               </f:facet>
               <h:outputText style="width: 80px" value="#{oneuser.login}" />
            </p:column>
....
If I put <p:ajax event="colResize" after resize column columns get rerender.

I create issue http://code.google.com/p/primefaces/iss ... il?id=2239
-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 27 guests