Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-567

impossible to create a definition including both single and list attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • tiles-core
    • None
    • Important

    Description

      Following definition:

          <definition name="t.base" template="/WEB-INF/tiles/base.jsp">
              <put-attribute name="title" value="SomeTitle" />
              <put-attribute name="menu" value="/WEB-INF/tiles/menu.jsp" />
              <put-attribute name="scripts" value="/WEB-INF/tiles/scripts.jsp" />
          </definition>
      
          <definition name="t.homepage" extends="t.base" preparer="com.blogspot.symfonyworld.lyricsbase.controller.TestViewPreparer">
              <put-list-attribute name="body">
                  <add-attribute value="/WEB-INF/jsp/homepage.jsp" />
                  <add-attribute value="/WEB-INF/tiles/footer.jsp" />
              </put-list-attribute>
              <put-attribute name="title" value="lyricsBase : home of lyrics" />
              <put-attribute name="view" value="homepage" cascade="true" />
          </definition>
      

      fails with the exception:

      org.xml.sax.SAXParseException; lineNumber: 33; columnNumber: 18; The content of element type "definition" must match "(put-attribute*,put-list-attribute*)".
      	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
      

      I've also tried to replace my definition list attribute with the ones from the official docs and the result is the same.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tkoomzaaskz Tomasz Ducin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: