There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-63cff86a-420b-4cd9-b91b-f56cb358559e XWIKI-22293 Open

HTML error and non-rendered Velocity in export modal

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-d8a011d8-d5bb-4384-87de-1a446a2e23d4 Changes by JP Kleijn on 17/Jul/24 15:23
 
Description: I spotted two different types of errors in the export modal.

One is a <div> element with only a non-existent attribute name of "hidden". E.g.:
{code:java}
<div hidden
="" > {code}
This would have to be changed to:
{code:java}
<div class="hidden"> {code}
The other two are errors of Velocity content not being generated, viz.:
{code:java}
$services.rendering.render($uix.execute(), 'html/5.0')         $services.rendering.render($uix.execute(), 'html/5.0') {code}
An excerpt from the export modal wherein these errors are located, so as to better locate these errors:
{code:java}
<div class="modal-dialog">
  <div class="modal-content">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
        <span class="fa fa-times" aria-hidden="true"></span>
      </button>
      <div class="modal-title" id="exportModalLabel">
        <span class="fa fa-download" aria-hidden="true"></span>
        Export
      </div>
    </div>
    <div class="modal-body xform">
      <p class="xHint">
        Choose the export format from the list below:
      </p>
      <div hidden="">
        $services.rendering.render($uix.execute(), 'html/5.0')
        $services.rendering.render($uix.execute(), 'html/5.0')
        <script id="pdfExportConfig" type="application/json">{"icons":{"pdf":{"iconSetName":"Font Awesome","cssClass":"fa fa-file-pdf-o","iconSetType":"FONT","url":""},"error":{"iconSetName":"Font Awesome","cssClass":"fa fa-exclamation-triangle","iconSetType":"FONT","url":""},"spinner":{"cssClass":"fa fa-spinner fa-spin"}},"templates":[{"label":"Default template","value":"xwiki:XWiki.PDFExport.Template"}],"serverSide":false,"pageReadyTimeout":60}</script>
      </div>
      <div class="xwiki-select xwiki-export-formats xwiki-select-3-columns" id="xwiki-select-mYa" data-ready="true">
        <p>
          <label for="xwiki-select-mYa-filter" class="sr-only">
            Filter
          </label>
          <input type="text" id="xwiki-select-mYa-filter" class="xwiki-select-filter" placeholder="Type to filter...">
        </p>
        <span id="xwiki-select-mYa-listbox-label" hidden="">
          Options for exportFormat
        </span>
... {code}