Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 912667

Summary: rich:tabPanel: Tabs are not clickable and can't be removed
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Juraj Huska <jhuska>
Component: RichFacesAssignee: Brian Leathem <bleathem>
Status: CLOSED NOTABUG QA Contact: Pavol Pitonak <ppitonak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: kpiwko, mnovotny, myarboro, ppitonak
Target Milestone: ER2   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-27 08:30:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juraj Huska 2013-02-19 11:17:21 UTC
The original issue is reported here:
https://issues.jboss.org/browse/RF-12768

The most relevant part:
The dynamically crated tabs of rich:tabPanel can not be removed. They however can be clicked. It is occurring only on Firefox 18.

Version-Release number of selected component (if applicable):
WFK 2.1.0.DR2
RichFaces 4.3.0.Final-redhat-1
EAP 6.0.1
Firefox 18

How reproducible:
It is reproducible on RichFaces internal application Metamer at this URL: 
http://localhost:8080/metamer/faces/components/richTabPanel/addTab2.xhtml

Steps to Reproduce:
1. Click on the Create tab button e.g. three times to create three tabs
2. Try to click on the cross of the tab in order to remove it
3. See that it is not removed.

Comment 1 JBoss JIRA Server 2013-02-19 13:18:32 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12768

Juraj, the tabs are clickable and can be removed with {{4.3.1-SNAPSHOT}} using Firefox 18.0.

Comment 2 JBoss JIRA Server 2013-02-19 15:00:07 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12768 to Coding In Progress

Comment 3 JBoss JIRA Server 2013-02-19 15:06:49 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12768

The issue occurs in Mojarra jsf.js:

{code:title=jsf.js:1233}
req.onComplete = function onComplete() {
if (req.xmlReq.status && (req.xmlReq.status >= 200 && req.xmlReq.status < 300)) {
sendEvent(req.xmlReq, req.context, "complete");
jsf.ajax.response(req.xmlReq, req.context);
} else {
sendEvent(req.xmlReq, req.context, "complete");
sendError(req.xmlReq, req.context, "httpError");
}
{code}

As you can see on attached screenshot, the {{xmlReq}} objects comes in inconsistent state - it has {{readyState=4}} but it has {{status=0}}.

Comment 4 JBoss JIRA Server 2013-02-19 15:07:12 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12768

[~jhuska], could you please check if Firefox 19 fixes this issue?

Comment 5 JBoss JIRA Server 2013-02-19 15:19:20 UTC
Juraj Húska <jhuska> made a comment on jira RF-12768

I tried it and unfortunately it is the same with FF 19.

Comment 6 JBoss JIRA Server 2013-02-20 15:34:41 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12768 to Open

Comment 7 JBoss JIRA Server 2013-02-21 08:45:34 UTC
Brian Leathem <bleathem> made a comment on jira RF-12768

I committed an automated test demonstrating the failure in FireFox.

Comment 8 JBoss JIRA Server 2013-02-21 08:45:44 UTC
Brian Leathem <bleathem> made a comment on jira RF-12768

I committed an automated test demonstrating the failure in FireFox.
https://github.com/richfaces/components/blob/develop/output/ui/src/test/integration/org/richfaces/component/RF12768_Test.java#L69

Comment 9 JBoss JIRA Server 2013-02-26 22:04:14 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12768

This is not issue of RichFaces or Firefox, but simply the test case issue - [~pmensik], could you please fix the Metamer accordingly?
https://github.com/richfaces/components/commit/7e12e059d83c6a0b85eb423bd16a961971d7f770

Comment 10 JBoss JIRA Server 2013-02-26 22:08:34 UTC
Brian Leathem <bleathem> updated the status of jira RF-12768 to Resolved

Comment 11 JBoss JIRA Server 2013-02-26 22:12:09 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12768

No worries, I have put a fix together: https://github.com/richfaces/qa/pull/9