Author: apetrelli Date: Thu Sep 28 04:41:52 2006 New Revision: 450811 URL: http://svn.apache.org/viewvc?view=rev&rev=450811 Log: Added test links for definitions that contain other definitions
Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite.jsp struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags.jsp struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags_notype.jsp Modified: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp Modified: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml?view=diff&rev=450811&r1=450810&r2=450811 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml (original) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/WEB-INF/tiles-defs.xml Thu Sep 28 04:41:52 2006 @@ -21,10 +21,22 @@ <put name="body" value="doc.portal.body" /> </definition> + <definition name="test.inner.definition" template="/layout.jsp"> + <put name="title" value="This is an inner definition."/> + <put name="header" value="/header.jsp"/> + <put name="body" value="/body.jsp"/> + </definition> + <definition name="test.definition" template="/layout.jsp"> <put name="title" value="This is the title."/> <put name="header" value="/header.jsp"/> <put name="body" value="/body.jsp"/> + </definition> + + <definition name="test.composite.definition" template="/layout.jsp"> + <put name="title" value="This is a composite definition."/> + <put name="header" value="/header.jsp"/> + <put name="body" value="test.inner.definition"/> </definition> <definition name="test.putAttributes" template="/putattributeslayout.jsp"> Modified: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp?view=diff&rev=450811&r1=450810&r2=450811 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp (original) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp Thu Sep 28 04:41:52 2006 @@ -30,11 +30,13 @@ <a href="testinsertdefinition_notype.jsp">Test Insert Configured Definition with no type specified</a><br/> <a href="testinsertdefinition_override.jsp">Test Insert Configured Definition with an overridden content</a><br/> <a href="testinsertdefinition_inline.jsp">Test Insert Configured Definition with an inline content</a><br/> + <a href="testinsertdefinition_composite.jsp">Test Insert Configured Definition that contains another definition inside</a><br/> <a href="testput.jsp">Test Put Tag</a><br/> <a href="testimportattribute.jsp">Test importAttribute Tag</a><br/> <h2>Currently not working tests</h2> - Currently all the tests work. + <a href="testinsertdefinition_composite_tags.jsp">Test Insert Definition that contains another definition inside using JSP tags</a><br/> + <a href="testinsertdefinition_composite_tags_notype.jsp">Test Insert Definition that contains another definition inside using JSP tags without types</a><br/> </body> </html> Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite.jsp?view=auto&rev=450811 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite.jsp (added) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite.jsp Thu Sep 28 04:41:52 2006 @@ -0,0 +1,3 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:insert name="test.composite.definition" type="definition" /> Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags.jsp?view=auto&rev=450811 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags.jsp (added) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags.jsp Thu Sep 28 04:41:52 2006 @@ -0,0 +1,13 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:definition name="test.inner.definition.tags" template="/layout.jsp"> + <tiles:put name="title" value="This is an inner definition with tags."/> + <tiles:put name="header" value="/header.jsp"/> + <tiles:put name="body" value="/body.jsp"/> +</tiles:definition> +<tiles:definition name="test.composite.definition.tags" template="/layout.jsp"> + <tiles:put name="title" value="This is a composite definition with tags."/> + <tiles:put name="header" value="/header.jsp"/> + <tiles:put name="body" value="test.inner.definition" type="definition"/> +</tiles:definition> +<tiles:insert name="test.composite.definition.tags" type="definition" /> Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags_notype.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags_notype.jsp?view=auto&rev=450811 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags_notype.jsp (added) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_composite_tags_notype.jsp Thu Sep 28 04:41:52 2006 @@ -0,0 +1,13 @@ +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:definition name="test.inner.definition.tags" template="/layout.jsp"> + <tiles:put name="title" value="This is an inner definition with tags."/> + <tiles:put name="header" value="/header.jsp"/> + <tiles:put name="body" value="/body.jsp"/> +</tiles:definition> +<tiles:definition name="test.composite.definition.tags" template="/layout.jsp"> + <tiles:put name="title" value="This is a composite definition with tags."/> + <tiles:put name="header" value="/header.jsp"/> + <tiles:put name="body" value="test.inner.definition"/> +</tiles:definition> +<tiles:insert name="test.composite.definition.tags" type="definition" />