From jira-events at lists.jboss.org Fri Aug 31 15:10:39 2012 Content-Type: multipart/mixed; boundary="===============3405050802544817772==" MIME-Version: 1.0 From: Yuriy Pogorzhelskiy (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12033) ExtendedDataTable doesn't show up in tabpanel with switchType="client" Date: Fri, 31 Aug 2012 15:10:39 -0400 Message-ID: <1476666665.7348.1346440239378.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1476360638.82467.1331324676272.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3405050802544817772== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12033?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12715217#com= ment-12715217 ] = Yuriy Pogorzhelskiy commented on RF-12033: ------------------------------------------ Bug is in JavaScript part. = When EDT is placed on hidden page (tab) parent DIV has attribute display=3D= none , and in this case invocation: this.element.clientWidth returns 0. Source-code: RichFaces-4.2.2.Final extendedDataTable.js#updateLayout = Line 283: var width =3D Math.max(0, this.element.clientWidth - offsetWidth); width =3D=3D 0 and we have this = Line 307: this.normalPartStyle.display =3D "none"; Hidden parent is a root cause. As a workaround i can suggest the next changes extendedDataTable.js#initialize: Lines 396: this.updateLayout(); Lines 396: this.updateScrollPosition(); //TODO Restore horizontal scroll po= sition replace with: if (this.element.parentNode.clientWidth > 0) { this.updateLayout(); this.updateScrollPosition(); //TODO Restore horizontal scroll position = } More elegant solution would be some hook - when parent div is become visibl= e - updateLayout is invoked, but I don't see the way in which we can do it = now. = > ExtendedDataTable doesn't show up in tabpanel with switchType=3D"client" > ---------------------------------------------------------------------- > > Key: RF-12033 > URL: https://issues.jboss.org/browse/RF-12033 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-tables > Affects Versions: 4.2.0.Final > Environment: FireFox 10.0.2 (works in IE7) > GlassFish 3.1 > Reporter: Josh Hill > Labels: lazy-loaded > Fix For: 4.3-Tracking > > Attachments: richfaces-test.zip > > > ExtendedDataTable doesn't show up in tabpanel with switchType=3D"client" > Facelet file from the attached testcase: > {code} > > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:rich=3D"http://richfaces.org/rich" > xmlns:f=3D"http://java.sun.com/jsf/core"> > > Test One > > >

Extended datatable inside tabpanel with switchType "client"

> > > > > Tab One > > Tab One > > > > Tab Two > > > > > Column 1 > > #{color} > > > = > = > >
> > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira --===============3405050802544817772==--