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

Trying to use the #livetable macro in a 2.0 document throws a rendering error

    XMLWordPrintable

Details

    • Unknown

    Description

      Inputting the following code in a page:

      {{velocity}}
      #set($columns = ["title", "doc.author", "doc.creationDate", "_actions"])
      #set($columnsProperties = {
                         "title" : { "type" : "text" , "link" : "view" , "size" : 10 },
                         "doc.author" : { "type" : "text" , "size" : 10 },
                         "doc.creationDate" : { "type" : "text" , "size" : 10 },
                         "_actions" : {"actions": ["edit","delete"]}
                       })
      #set($options = { 
         "className":"XWiki.FeedEntryClass",
         "translationPrefix" : "bk_",
         "tagCloud" : true,
         "rowCount": 15,
         "selectedColumn" : "doc.creationDate",
         "defaultOrder" : "desc"
      })
      #livetable("bookmarks" $columns $columnsProperties $options)
      {{/velocity}}
      

      results in the following error being thrown:

      Failed to execute macro: html
      org.xwiki.rendering.macro.MacroExecutionException: When using the HTML macro inline, you can only use inline HTML content.
      Block HTML content (such as tables) cannot be displayed. Try leaving an empty line before and after the HTML macro.
      

      I think it's caused by the way the html tags enclosing the #livetable macro are positioned in XE's vm files.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            wikibc Guillaume Lerouge
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: