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

rich:tabPanel: Click on already selected rich:tab causes JavaScript error

    XMLWordPrintable

    Details

    • Sprint:
      4.3.2.Final Release, 5.0.0.Alpha1 Sprint
    • Steps to Reproduce:
      Hide

      Try to click on tab "1" in provided example with RichFaces 4.3.2CR1

      Show
      Try to click on tab "1" in provided example with RichFaces 4.3.2CR1

      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

      <rich:tabPanel switchType="ajax"> 
        <rich:tab name="1">
        </rich:tab>
        <rich:tab name="2">
        </rich:tab>
      </rich:tabPanel>
      

      JavaScript error output in Chrome is:

      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);

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bleathem Brian Leathem
                  Reporter:
                  ma.aqcon Michael Abele
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2 hours
                    2h
                    Remaining:
                    Remaining Estimate - 2 hours
                    2h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified