Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-12722

The xwiki:livetable:<id>:loadingEntries event is not fired

    Details

    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      If you check the livetable.js code you'll see that it attempts to fire the following two events:

      // Let code know the table is about to load new entries.
      // 1. Named event (for code interested by that table only)
      document.fire("xwiki:livetable:" + this.domNodeName + ":loadingEntries");
      // 2. Generic event (for code potentially interested in any livetable)
      document.fire("xwiki:livetable:loadingEntries", {
        "tableId" : this.domNodeName
      });
      

      The issue is that this.domNodeName is undefined (because 'this' is not bound to the live table object) and thus the expected event is not fired. Moreover, the tableId property of the event data is not set correctly.

        Attachments

          Activity

            People

            • Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: