Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12977

a4j:queue breaks tabPanel

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.3.2, 5.0.0.Alpha2
    • Fix Version/s: 4.5.15
    • Component/s: component-output
    • Labels:
      None
    • Environment:

      This happens in RF 4.3.2.CR1, but I can't select such version in JIRA.

    • Workaround Description:
      Hide

      Usually you will not attach a4j:queue to the panel, but to a form or create global queue. If this is the case, then as a workaround you an add <a4j:attachQueue requestDelay="0"/> to tabPanel.

      Show
      Usually you will not attach a4j:queue to the panel, but to a form or create global queue. If this is the case, then as a workaround you an add <a4j:attachQueue requestDelay="0"/> to tabPanel.

      Description

      There is clearly a bug in tabPanel.js

              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;
              },
      

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michpetrov Michal Petrov
                  Reporter:
                  blabno Bernard Labno
                • Votes:
                  5 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: