From jira-events at lists.jboss.org Wed May 2 06:07:18 2012 Content-Type: multipart/mixed; boundary="===============3425617947194429024==" MIME-Version: 1.0 From: Philip Maes (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] (RF-12225) rich:tabPanel first tab issue Date: Wed, 02 May 2012 06:07:18 -0400 Message-ID: <1766711835.47866.1335953238904.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1190294031.47858.1335953117942.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============3425617947194429024== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/RF-12225?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel ] Philip Maes updated RF-12225: ----------------------------- Description: = Hello, there is a weird behavior with rich:tabPanel. And the bug (for me it's a bu= g) is present in your showcase. When you first load a page that contains a tabPanel, the first tab has a ne= sted js script for the toggle. The problem is that this js script is also p= resent at its normal position (after tab declaration). And it causes that w= hen you click on this tab, 2 ajax requests are sent. But only once. After, = the nested js script isn't present anymore. {code:title=3D|borderStyle=3Dsolid}
Here is tab #= 1
{code} Steps to reproduce it: -go to: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo= =3DtabPanel&sample=3DvalueManagement&skin=3DblueSky -open a js console (for me it's firebug, console tab) to see ajax requests; -use html inspector to check that in the body of tab "First" you have the j= s script; -click on tab named "Second"; -then click on tab named "First" and there are 2 ajax requests sent; -now reclick on another tab; -then click on tab named "First" and there is only 1 ajax request sent; -recheck the content of the tab and you can see that the js script isn't pr= esent anymore. was: Hello, there is a weird behavior with rich:tabPanel. And the bug (for me it's a bu= g) is present in your showcase. When you first load a page that contains a tabPanel, the first tab has a ne= sted js script for the toggle. The problem is that this js script is also p= resent at its normal position (after tab declaration). And it causes that w= hen you click on this tab, 2 ajax requests are sent. But only once. After, = the nested js script isn't present anymore. {code:title=3DBar.java|borderStyle=3Dsolid}
Here is tab #= 1
{code} Steps to reproduce it: -go to: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo= =3DtabPanel&sample=3DvalueManagement&skin=3DblueSky -open a js console (for me it's firebug, console tab) to see ajax requests; -use html inspector to check that in the body of tab "First" you have the j= s script; -click on tab named "Second"; -then click on tab named "First" and there are 2 ajax requests sent; -now reclick on another tab; -then click on tab named "First" and there is only 1 ajax request sent; -recheck the content of the tab and you can see that the js script isn't pr= esent anymore. = > rich:tabPanel first tab issue > ----------------------------- > > Key: RF-12225 > URL: https://issues.jboss.org/browse/RF-12225 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: component-output > Affects Versions: 4.2.1.Final > Environment: Tomcat 7, JSF 2.2, RF 4.2.1.FINAL > Reporter: Philip Maes > > Hello, > there is a weird behavior with rich:tabPanel. And the bug (for me it's a = bug) is present in your showcase. > When you first load a page that contains a tabPanel, the first tab has a = nested js script for the toggle. The problem is that this js script is also= present at its normal position (after tab declaration). And it causes that= when you click on this tab, 2 ajax requests are sent. But only once. After= , the nested js script isn't present anymore. > {code:title=3D|borderStyle=3Dsolid} >
>
Here is tab= #1
> > >
>
>
> > > {code} > Steps to reproduce it: > -go to: http://showcase.richfaces.org/richfaces/component-sample.jsf?demo= =3DtabPanel&sample=3DvalueManagement&skin=3DblueSky > -open a js console (for me it's firebug, console tab) to see ajax request= s; > -use html inspector to check that in the body of tab "First" you have the= js script; > -click on tab named "Second"; > -then click on tab named "First" and there are 2 ajax requests sent; > -now reclick on another tab; > -then click on tab named "First" and there is only 1 ajax request sent; > -recheck the content of the tab and you can see that the js script isn't = present anymore. -- 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 --===============3425617947194429024==--