[richfaces-issues] [JBoss JIRA] (RF-12969) rich:tabPanel: Click on already selected rich:tab causes JavaScript error

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue May 7 10:33:53 EDT 2013


     [ https://issues.jboss.org/browse/RF-12969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated RF-12969:
----------------------------

    Description: 
Clicking on an already active tab causes a JavaScript error with 4.3.2 CR1. 
The following example works fine with 4.3.1

{code}
<rich:tabPanel switchType="ajax"> 
  <rich:tab name="1">
  </rich:tab>
  <rich:tab name="2">
  </rich:tab>
</rich:tabPanel>
{code}

JavaScript error output in Chrome is:
{code}
Uncaught TypeError: Cannot call method 'onCompleteHandler' of undefined
(anonymous function)
serverEventHandler packed.js:529
(anonymous function) packed.js:505
(anonymous function) packed.js:488
(anonymous function) packed.js:456
(anonymous function) packed.js:488
sendEvent jsf.js.jsf:1613
response jsf.js.jsf:2254
jsf.ajax.response packed.js:656
richfaces.queue.response packed.js:1170
jsf.ajax.response packed.js:799
onComplete jsf.js.jsf:1398
AjaxEngine.req.xmlReq.onreadystatechange jsf.js.jsf:1379

JavaScript error in Firefox is
TypeError: RichFaces.$(...) is undefined

return new Function("event", handlerCode);
{code}

  was:
Clicking on an already active tab causes a JavaScript error with 4.3.2 CR1. 
The following example works fine with 4.3.1
<rich:tabPanel switchType="ajax"> 
  <rich:tab name="1">
  </rich:tab>
  <rich:tab name="2">
  </rich:tab>
</rich:tabPanel>

JavaScript error output in Chrome is:
Uncaught TypeError: Cannot call method 'onCompleteHandler' of undefined
(anonymous function)
serverEventHandler packed.js:529
(anonymous function) packed.js:505
(anonymous function) packed.js:488
(anonymous function) packed.js:456
(anonymous function) packed.js:488
sendEvent jsf.js.jsf:1613
response jsf.js.jsf:2254
jsf.ajax.response packed.js:656
richfaces.queue.response packed.js:1170
jsf.ajax.response packed.js:799
onComplete jsf.js.jsf:1398
AjaxEngine.req.xmlReq.onreadystatechange jsf.js.jsf:1379

JavaScript error in Firefox is
TypeError: RichFaces.$(...) is undefined

return new Function("event", handlerCode);


    
> rich:tabPanel: Click on already selected rich:tab causes JavaScript error
> -------------------------------------------------------------------------
>
>                 Key: RF-12969
>                 URL: https://issues.jboss.org/browse/RF-12969
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.2
>         Environment: Mojarra 2.1.20
>            Reporter: Michael Abele
>
> Clicking on an already active tab causes a JavaScript error with 4.3.2 CR1. 
> The following example works fine with 4.3.1
> {code}
> <rich:tabPanel switchType="ajax"> 
>   <rich:tab name="1">
>   </rich:tab>
>   <rich:tab name="2">
>   </rich:tab>
> </rich:tabPanel>
> {code}
> JavaScript error output in Chrome is:
> {code}
> Uncaught TypeError: Cannot call method 'onCompleteHandler' of undefined
> (anonymous function)
> serverEventHandler packed.js:529
> (anonymous function) packed.js:505
> (anonymous function) packed.js:488
> (anonymous function) packed.js:456
> (anonymous function) packed.js:488
> sendEvent jsf.js.jsf:1613
> response jsf.js.jsf:2254
> jsf.ajax.response packed.js:656
> richfaces.queue.response packed.js:1170
> jsf.ajax.response packed.js:799
> onComplete jsf.js.jsf:1398
> AjaxEngine.req.xmlReq.onreadystatechange jsf.js.jsf:1379
> JavaScript error in Firefox is
> TypeError: RichFaces.$(...) is undefined
> return new Function("event", handlerCode);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list