You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Tomasz Ducin (JIRA)" <ji...@apache.org> on 2013/02/27 00:58:13 UTC
[jira] [Created] (TILES-566) impossible to create a definition
including both single and list attributes
Tomasz Ducin created TILES-566:
----------------------------------
Summary: 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 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