[richfaces-issues] [JBoss JIRA] (RF-12977) a4j:queue breaks tabPanel
Juraj Húska (JIRA)
jira-events at lists.jboss.org
Wed Oct 2 13:13:02 EDT 2013
[ https://issues.jboss.org/browse/RF-12977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12809027#comment-12809027 ]
Juraj Húska commented on RF-12977:
----------------------------------
I have reproduced the issue on [this|https://github.com/jhuska/richfaces-sanbox/tree/community233141] small project.
I can reproduce it on other switchable components as well ({{r:accordion}}, {{r:collapsiblePanel}}). The issue is occurring when using {{r:queue}} with global scope or without {{name}} attribute.
Steps to reproduce:
# Clone the project from https://github.com/jhuska/richfaces-sanbox/tree/community233141
# Build it and deploy it on JBoss AS 7.1.1.Final
# Load e.g. http://localhost:8080/richfaces-sanbox/indexGlobalQueueCollapsiblePanel.jsf or http://localhost:8080/richfaces-sanbox/indexGlobalQueueAccordion.jsf or http://localhost:8080/richfaces-sanbox/indexGlobalQueueTabPanel.jsf to see the those components can not be switched.
> a4j:queue breaks tabPanel
> -------------------------
>
> Key: RF-12977
> URL: https://issues.jboss.org/browse/RF-12977
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-output
> Affects Versions: 4.3.2, 5.0.0.Alpha2
> Environment: This happens in RF 4.3.2.CR1, but I can't select such version in JIRA.
> Reporter: Bernard Labno
> Priority: Critical
> Fix For: 5-Tracking
>
>
> There is clearly a bug in tabPanel.js
> {code}
> execAjax : function (oldPanel, newPanel) {
> var options = $.extend({}, newPanel.getTogglePanel().options["ajax"], {});
> this.__setActiveItem(newPanel);
> rf.ajax(newPanel.id, null, options);
> if (oldPanel) { // HERE IS THE BUG
> this.__setActiveItem(oldPanel);
> }
> return false;
> },
> {code}
> If the tab panel works in ajax mode and we attach a4j:queue with requestDelay="1000" then rf.ajax... will just add request to queue, but meanwhile the active item will be changed to old value.
--
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