Note that there are some explanatory texts on larger screens.

plurals
  1. PONesting Apache Tiles Template
    primarykey
    data
    text
    <p>So I found this: <a href="http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html" rel="nofollow noreferrer">http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html</a></p> <p>Here is the example:</p> <pre><code>&lt;definition name="myapp.homepage" template="/layouts/classic.jsp"&gt; &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt; &lt;put-attribute name="header" value="/tiles/banner.jsp" /&gt; &lt;put-attribute name="menu" value="/tiles/common_menu.jsp" /&gt; &lt;put-attribute name="body"&gt; &lt;definition template="/layouts/three_rows.jsp"&gt; &lt;put-attribute name="one" value="/tiles/headlines.jsp" /&gt; &lt;put-attribute name="two" value="/tiles/topics.jsp" /&gt; &lt;put-attribute name="one" value="/tiles/comments.jsp" /&gt; &lt;/definition&gt; &lt;/put-attribute&gt; &lt;put-attribute name="footer" value="/tiles/credits.jsp" /&gt; &lt;/definition&gt; </code></pre> <p>So I defined this:</p> <pre><code>&lt;definition name="mgmt.base.layout" extends="base.layout"&gt; &lt;put-attribute name="body"&gt; &lt;definition template="/WEB-INF/mgmt/config/mgmtBody.jsp"/&gt; &lt;put-attribute name="adminLeft" value="/WEB-INF/mgmt/config/left.jsp"/&gt; &lt;put-attribute name="adminRight" value="/tiles/blank.html"/&gt; &lt;/definition&gt; &lt;/put-attribute&gt; &lt;/definition&gt; </code></pre> <p>But the funny part is that, even their own documentation is wrong:</p> <p><strong>2009-05-12 11:20:56,088 [main] ERROR - org.apache.commons.digester.Digester.error(Digester.java:1635): Parse Error at line 17 column 68: Attribute "name" is required and must be specified for element type "definition". org.xml.sax.SAXParseException: Attribute "name" is required and must be specified for element type "definition".</strong></p> <p>Even though I define a name for it, it still gives the following error:</p> <p><strong>2009-05-12 11:35:31,818 [main] ERROR - org.apache.commons.digester.Digester.error(Digester.java:1635): Parse Error at line 21 column 19: The content of element type "put-attribute" must match "null". org.xml.sax.SAXParseException: The content of element type "put-attribute" must match "null".</strong></p> <p>What is this mean?!!!! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload