From jira-events at lists.jboss.org Wed Mar 27 04:42:42 2013 Content-Type: multipart/mixed; boundary="===============8160519415707976435==" MIME-Version: 1.0 From: David Lee (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12860) AccordionItem.js with error cause browser crash Date: Wed, 27 Mar 2013 04:42:42 -0400 Message-ID: In-Reply-To: JIRA.12487682.1363862211000@jira02.app.mwc.hst.phx2.redhat.com --===============8160519415707976435== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12860?page=3Dcom.atlassian.jira.pl= ugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12763370#com= ment-12763370 ] = David Lee commented on RF-12860: -------------------------------- Hi Jan, I been tried for your code, and true...it won't happened. And I tried to find what's wrong in my code, I found if I add the following JavaScript it will crash. But I add these code to your code it's fine. Still trying to debug. = > AccordionItem.js with error cause browser crash > ----------------------------------------------- > > Key: RF-12860 > URL: https://issues.jboss.org/browse/RF-12860 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-output > Affects Versions: 4.3.0.Final > Environment: JBOSS7/JSF2/FirefoxESR10 or Chrome25.0.1 > Reporter: David Lee > Assignee: Jan Papousek > Labels: javascript, rich:accordionItem > Fix For: 4.3.2 > > > Put the rich:accordionItem and rich:extendedDataTable on same page, > and just click on any column for sort. > The firebug will show an error: > items[i].__header is not a function > [Break On This Error] = > h -=3D items[i].__header().outerHeight(); > Looks like accordionItem.js line48 been triggered when sort: > $(document).one("javascriptServiceComplete", function () { > item.__fitToHeight(item.getTogglePanel()); > }); = > And after this happened, my whole thing crashed. > Now more sortable or click for any action. -- 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 --===============8160519415707976435==--