[
https://issues.jboss.org/browse/RF-12969?page=com.atlassian.jira.plugin.s...
]
Brian Leathem 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:
{quote}
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
{quote}
JavaScript error in Firefox is
{quote}
TypeError: RichFaces.$(...) is undefined
return new Function("event", handlerCode);
{quote}
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
{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}
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:
{quote}
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
{quote}
JavaScript error in Firefox is
{quote}
TypeError: RichFaces.$(...) is undefined
return new Function("event", handlerCode);
{quote}
--
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