Tomasz Ducin created TILES-567:
----------------------------------

             Summary: impossible to create a definition including both single 
and list attributes
                 Key: TILES-567
                 URL: https://issues.apache.org/jira/browse/TILES-567
             Project: Tiles
          Issue Type: Bug
          Components: tiles-core
            Reporter: Tomasz Ducin


Following definition:

{code}
    <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>
{code}

fails with the exception:

{code}
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)
{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to