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

t:extension-point declaration in tapestry_*.xsd's have never been correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3, 5.4, 5.2, 5.1
    • 5.4
    • None

    Description

      JetBrains has just improved their tapestry plugin to use the specfied tapestry_x_x.xsd when indicating errors in .tml files.

      <t:extension-point id="<id>"> is flagged with a missing required attribute name (according to the xsd), however the ExtensionPointToken / SaxTemplateParser seems to expect an attribute called "id" being specified, using "name" results in a tapestry exception:

      ...
      Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Element <extension-point> does not support an attribute named 'name'. The only allowed attribute name is 'id'.

      I guess the easiest fix is to alter the xsd's to match the actual parser code to prevent breaking existing tapestry applications.

      This is a trivial fix and could be a nice thing to have in place before releasing 5.4

      Attachments

        Activity

          People

            jkemnade Jochen Kemnade
            chrispoulsen Chris Poulsen
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: