Board index JavaServer Faces General Datatable - resizableColumns doesn`t work

Datatable - resizableColumns doesn`t work

Components, Ajax Framework, Utilities and More.


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


<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
I got same problem. I am using M1.

max

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


Posts: 33
3.0.M2 is the current snapshot.

Nightly snapsnots are available from here.


Posts: 99
Same thing is happen with pagination="true"

<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/issues/detail?id=2239
-----------
primefaces-3.3-SNAPSHOT
tomcat 7.0.22
Mojarra 2.1.1 (FCS 20110408)
NetBeans 7.1


Return to General