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

Bug 912674

Summary: RichFaces showcase - switching among dynamically created panels, tabs cease to function
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Juraj Huska <jhuska>
Component: RichFaces, ExamplesAssignee: Brian Leathem <bleathem>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Pitonak <ppitonak>
Severity: medium Docs Contact:
Priority: high    
Version: 2.1.0CC: kpiwko, mnovotny, myarboro, ppitonak, vdedik
Target Milestone: CR1   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: rf-showcase
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:54:42 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:39:16 UTC
Description of problem:
Dynamically Tabs, Panels can not be switched after some working with them. 

It seems that they cease to function when the tab which was active after the form submission is revisited. It is working again after next form submission, but only till the new active tab is not clicked again.

Following components are affected: rich:togglePanel, rich:tabPanel, rich:accordion.

It is not occurring in the community version of RichFaces (4.3.0.Final) and is occurring only for dynamically created tabs. I was not able to reproduce it on the Metamer.

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

Steps to Reproduce:
1. load e.g. demo for rich:togglePanel at localhost:8080/showcase/richfaces/component-sample.jsf?demo=togglePanel&sample=dynamic&skin=blueSky
2. Click two times on Next button to toggle the panel. You should see: Skin: deepMarine in the panel header.
3. Click two times on the Previous button in order to toggle to the first panel with header: Skin: blueSky
4. Click next button
5. See that the panel is not toggled anymore, till the form is not submitted again. E.g. click on the 'Switch to the..' button in order to submit the form.

Comment 4 JBoss JIRA Server 2013-03-06 11:40:09 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12827

I guess this is interoperability problem of Mojarra versions used for testing.

Juraj, could you please check my assumption
and grab Tomcat and given Mojarra versions from EAP/AS7 and re-test?

Comment 5 Pavol Pitonak 2013-03-06 15:26:41 UTC
Juraj, did you try community version of RichFaces on both EAP 6.0.1 and JBoss AS 7.1.1?

Comment 6 JBoss JIRA Server 2013-03-07 10:02:58 UTC
Juraj Húska <jhuska> made a comment on jira RF-12827

Lukas you are right,

the issue is caused by RichFaces-Mojarra integration.

It is occurring on community version as well.

First version of Mojarra where the issue is occurring: {{2.1.13 (EAP 6.0.1)}}. It is also occurring on latest 2.1.x, which is {{2.1.17.}}

Comment 8 JBoss JIRA Server 2013-03-08 05:33:02 UTC
Brian Leathem <bleathem> made a comment on jira RF-12827

In RF-12765 I noticed the same behaviour only occurred with a nested form.  Looking at the showcase samples reported here, I see they also use nested forms.  Nesting forms in HTML is forbidden (http://www.w3.org/TR/html5/forms.html#the-form-element), and as such is in JSF as well.  I will try removing the inner form element.

Comment 9 JBoss JIRA Server 2013-03-08 06:00:33 UTC
Brian Leathem <bleathem> updated the status of jira RF-12827 to Resolved

Comment 10 JBoss JIRA Server 2013-03-08 06:00:33 UTC
Brian Leathem <bleathem> made a comment on jira RF-12827

Removed the nested tab from within the repeating components

Comment 13 Vaclav Dedik 2013-03-12 08:58:14 UTC
Done, I cherry-picked the fix for wfk.

Comment 14 Juraj Huska 2013-03-26 10:36:29 UTC
I verified it with WFK 2.2.0.CR1.

Comment 15 JBoss JIRA Server 2013-04-25 09:16:48 UTC
Jan Papousek <jpapouse> updated the status of jira RF-12827 to Closed

Comment 16 Karel Piwko 2013-05-14 14:54:42 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.

Comment 17 JBoss JIRA Server 2013-05-23 20:54:27 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12827 to Reopened

Comment 18 JBoss JIRA Server 2013-05-23 20:56:16 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12827 to Coding In Progress

Comment 19 JBoss JIRA Server 2013-05-23 21:03:17 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12827 to Resolved

Comment 24 JBoss JIRA Server 2013-05-30 11:53:58 UTC
Jan Papousek <jpapouse> updated the status of jira RF-12827 to Closed

Comment 25 JBoss JIRA Server 2013-05-30 11:53:58 UTC
Jan Papousek <jpapouse> made a comment on jira RF-12827

verified in 5.0.0.Alpha1