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

Livetable macro isn't working anymore in XWiki 2.0 syntax

    XMLWordPrintable

Details

    • Unknown

    Description

      It results in a HTML error: "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. at "

      Input for the test:

      {{velocity}}
      #set($collist = [ "_avatar", "first_name", "last_name", "email"])
      #set($colprops = {
                         "first_name" : { "type" : "text" , "size" : 10, "link" : "view"},
                         "last_name" : { "type" : "text" , "size" : 10, "link" : "view"},
                         "email" : { "type" : "text" , "size" : 20, "link" : "editor"},
                         "_avatar" : { "type" : "none" , "size" : 20, "link" : "none", "html" : "true", "sortable":false }
                       })
      #set($options = { "className":"XWiki.XWikiUsers",
                        "translationPrefix" : "xe.index.users.",
                        "tagCloud" : true,
                        "rowCount": 5 })
      #livetable("userstable" $collist $colprops $options)
      {{/velocity}}
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: