Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2200

Generating XML from pages and templates is not possible anymore

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      With Tapestry 5.4-alpha-22, I can't produce XML content with pages anymore.

      Given the page

      @ContentType("text/xml")
      public class ModuleInfo {

      ...
      }

      And the given template

      <info xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
      <moduleName>${context.moduleName}</moduleName>
      <serverName>${context.serverName}</serverName>
      <serverAddress>${context.serverAddress}</serverAddress>
      <type>${context.type}</type>
      <client>${context.client}</client>
      <package>
      <t:loop source="packageInfo" value="currentEntry" >
      <item name="${currentEntry.key}">${currentEntry.value}</item>
      </t:loop>
      </package>
      </info>

      I get the error message :
      "The root element of the rendered document was <info>, not <html>. A root element of <html> is needed when linking JavaScript and stylesheet resources."

      My code was running fine with Tapestry 5.4-alpha-11

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            thiagohp Thiago Henrique De Paula Figueiredo
            denis.delangle Denis Delangle
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment