Author: apetrelli Date: Tue Nov 14 04:21:34 2006 New Revision: 474761 URL: http://svn.apache.org/viewvc?view=rev&rev=474761 Log: SB-85 Added test case in tiles-test to test preparer configured in Tiles definition files.
Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_preparer_configured.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=474761&r1=474760&r2=474761 ============================================================================== --- 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 Tue Nov 14 04:21:34 2006 @@ -81,5 +81,6 @@ <put name="header" value="/header.jsp"/> </definition> + <definition name="preparer.definition.configured" extends="preparer.definition" preparer="org.apache.tiles.test.preparer.TestViewPreparer" /> </tiles-definitions> 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=474761&r1=474760&r2=474761 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp (original) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/index.jsp Tue Nov 14 04:21:34 2006 @@ -32,6 +32,7 @@ <h3>Standard Render/Attribute Tests</h3> <a href="testinsertdefinition.jsp">Test Insert Configured Definition</a><br/> <a href="testinsertdefinition_preparer.jsp">Test Insert Configured Definition with Preparer</a><br/> + <a href="testinsertdefinition_preparer_configured.jsp">Test Insert Configured Definition with Preparer configured in the definition itself</a><br/> <a href="testinsertdefinition_classpath.jsp">Test Insert Configured Classpath Definition</a><br/> <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/> Added: struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_preparer_configured.jsp URL: http://svn.apache.org/viewvc/struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_preparer_configured.jsp?view=auto&rev=474761 ============================================================================== --- struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_preparer_configured.jsp (added) +++ struts/sandbox/trunk/tiles/tiles-test/src/main/webapp/testinsertdefinition_preparer_configured.jsp Tue Nov 14 04:21:34 2006 @@ -0,0 +1,24 @@ +<%-- +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +--%> +<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> + +<tiles:insertDefinition name="preparer.definition.configured"/>