Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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
- duplicates
-
TILES-566 impossible to create a definition including both single and list attributes
- Resolved