From jira-events at lists.jboss.org Thu Apr 5 02:25:47 2012 Content-Type: multipart/mixed; boundary="===============6444257114015925321==" MIME-Version: 1.0 From: Jan Papousek (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12143) [rich:extendedDataTable] setColumnWidth doesn't work correct if 2 tables exists with columns with the same column-id Date: Thu, 05 Apr 2012 02:25:47 -0400 Message-ID: <533877590.55519.1333607147634.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1996722274.54134.1333549907690.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============6444257114015925321== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12143?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12681905#com= ment-12681905 ] = Jan Papousek commented on RF-12143: ----------------------------------- I've added a new sample to Metamer reproducing this issue. Rene: Thank you for reporting. = > [rich:extendedDataTable] setColumnWidth doesn't work correct if 2 tables = exists with columns with the same column-id > -------------------------------------------------------------------------= ------------------------------------------- > > Key: RF-12143 > URL: https://issues.jboss.org/browse/RF-12143 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Affects Versions: 4.2.1.CR1 > Reporter: Rene O > Assignee: Jan Papousek > > If you have 2 tables with different table-ids but with identic column-ids= , setColumnWidth doesn't work > {code:title=3Dexample.xhtml} > > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich" = > > > > JSF Test = > > = > > = > > onready=3D"#{rich:component('tableA')}.setColumnWidth('colA','200');= "> > > = > > > > ColA > > #{item.itemA} > > > = > onready=3D"#{rich:component('tableB')}.setColumnWidth('colA','500');= "> > > = > > > > ColAB > > #{itemB.itemA} > > > > > > > {code} > If you change within tableB the column-id from 'colA' to 'colB' and chang= e within onready of tableB from '#{rich:component('tableB')}.setColumnWidth= ('colA','500');' to '#{rich:component('tableB')}.setColumnWidth('colB','500= ');', everything works as expected. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.jboss.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============6444257114015925321==--