[
https://issues.apache.org/jira/browse/TILES-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334940#comment-14334940
]
Tomasz Ducin commented on TILES-566:
------------------------------------
Assuming that {instances\/} directory includes instanceA.json, instanceB and
instanceC.json, then
{code}grunt test <instance>
grunt test <instance>{code}
> impossible to create a definition including both single and list attributes
> ---------------------------------------------------------------------------
>
> Key: TILES-566
> URL: https://issues.apache.org/jira/browse/TILES-566
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)