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

Impossible to execute a fully custom Template/Template content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.4, 8.4.6
    • 8.4.5
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      From caubin:

      I found out that the InternalTemplateManager does a cast from a TemplateContent to a DefaultTemplateContent which is a private class here : (https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/template/InternalTemplateManager.java#L739). Could it be possible to make this class public in order to extend it later ?

      Right now, we can't really extend the Template class if this cast throws an exception every time we call templateManager.execute(myCustomTemplate)

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: