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

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

    XMLWordPrintable

Details

    • Trivial
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: