You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tiles.apache.org by ap...@apache.org on 2009/03/02 14:13:57 UTC

svn commit: r749298 [1/3] - in /tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp: WEB-INF/velocity/ velocity/

Author: apetrelli
Date: Mon Mar  2 13:13:55 2009
New Revision: 749298

URL: http://svn.apache.org/viewvc?rev=749298&view=rev
Log:
TILESSB-8
Copied resources for Velocity testing.

Added:
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml   (with props)
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/alternate-header.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/body.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/classpath.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale_db.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/errorInclude.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/exception.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/header.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutOne.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutTwo.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_alt_title.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_closebody.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_default.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_flush.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_ignore.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_list.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_nobody.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_override.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_preparer.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_roles.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/override.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putallattributeslayout.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putattributeslayout.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/selectlocale.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdecorationfilter.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_extend.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_list_inherit.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_preparer.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testimportattribute.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testimportattribute_all.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testimportattribute_inherit.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_attribute_preparer.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_attribute_roles.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_attribute_roles_tags.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_cascaded.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_cascaded_list.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_cascaded_overridden.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_cascaded_template.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_classpath.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_composite.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_composite_tags.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_composite_tags_includes_configured.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_composite_tags_includes_configured_notype.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_composite_tags_notype.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_db.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_defaultvalues.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_el.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_el_singleeval.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_exception.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_extended_db.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_flush.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_freemarker.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_ignore.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_inline.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_old.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_openbody.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_override.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_override_and_not.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_override_template.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_preparer.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_preparer_configured.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_reversed.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_reversed_explicit.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_role.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_role_tag.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition_wildcard.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertnesteddefinition.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertnesteddefinition_tags.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertnestedlistdefinition.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertnestedlistdefinition_tags.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_cascaded.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_cascaded_overridden.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_cascaded_template.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_el.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_el_singleeval.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_flush.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_reversed_explicit.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testput_servlet.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_cascaded.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testputlist_inherit.vm
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testsetcurrentcontainer.vm
Modified:
    tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testinsertdefinition.vm

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
+
+<tiles-definitions>
+  <definition name="velocity.test.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This definition is from an alternate container."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+  <definition name="velocity.test.definition*.message*" template="/velocity/layout{1}.ftl">
+      <put-attribute name="title"  value="This definition has a message: {2}."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-alt-defs.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
+       "http://struts.apache.org/dtds/tiles-config_1_1.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+
+  <definition name="velocity.test.definition.old_format" template="/velocity/layout.ftl">
+      <put name="title"  value="This is a definition configured in 1.1 format."/>
+      <put name="header" value="/velocity/header.ftl"/>
+      <put name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs-1.1.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,245 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+
+  <!-- =======================================================  -->
+  <!-- Master definition  									-->
+  <!-- =======================================================  -->
+
+  <!-- Doc index page description  -->
+  <definition name="velocity.test.inner.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is a configured inner definition."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.definition.ignore" template="/velocity/layout_ignore.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.definition.velocity" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.definition.flush" template="/velocity/layout_flush.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.definition.exception" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/exception.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.composite.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is a configured composite definition."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="test.inner.definition"/>
+  </definition>
+
+  <definition name="velocity.test.putAttributes" template="/velocity/putattributeslayout.ftl">
+    <put-attribute name="stringTest" value="This is a string" type="string" />
+    <put-list-attribute name="list">
+      <add-attribute value="valueOne" type="string" />
+      <add-attribute value="valueTwo" type="string" />
+      <add-attribute value="valueThree" type="string" />
+    </put-list-attribute>
+  </definition>
+
+  <definition name="velocity.test.putAttributes.inherit" extends="velocity.test.putAttributes">
+    <put-list-attribute name="list" inherit="true">
+      <add-attribute value="valueFour" type="string" />
+    </put-list-attribute>
+  </definition>
+
+  <definition name="velocity.test.putAllAttributes" template="/velocity/putallattributeslayout.ftl">
+    <put-attribute name="one" value="There should be three more strings" type="string" />
+    <put-attribute name="two" value="One" type="string" />
+    <put-attribute name="three" value="Two" type="string" />
+    <put-attribute name="four" value="Three" type="string" />
+  </definition>
+
+  <definition name="velocity.preparer.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+  </definition>
+
+    <definition name="velocity.testdispatchservlet" extends="test.definition"/>
+
+  <definition name="velocity.preparer.definition.configured" extends="preparer.definition" preparer="org.apache.tiles.test.preparer.TestViewPreparer" />
+  
+  <definition name="velocity.test.localized.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title" value="Default locale" />
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body" value="/velocity/defaultlocale.ftl" />
+  </definition>
+
+  <definition name="velocity.test.definition.appears" extends="test.definition">
+      <put-attribute name="title"  value="This definition appears."/>
+  </definition>
+
+  <definition name="velocity.test.definition.does_not_appear" extends="test.definition">
+      <put-attribute name="title"  value="This definition does
+       not appear."/>
+  </definition>
+
+  <definition name="velocity.test.definition.appears.configured"
+    extends="test.definition.appears" role="goodrole" />
+
+  <definition name="velocity.test.definition.does_not_appear.configured"
+    extends="test.definition.does_not_appear" role="badrole" />
+
+  <definition name="velocity.test.definition.roles" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl" role="goodrole" />
+      <put-attribute name="body"   value="/velocity/body.ftl" role="badrole" />
+  </definition>
+
+  <definition name="velocity.test.definition.roles.tags" template="/velocity/layout_roles.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body"   value="/velocity/body.ftl" />
+  </definition>
+
+  <!-- Tests for cascaded attributes -->
+  <definition name="velocity.test.overridden.cascaded.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title." cascade="true" />
+      <put-attribute name="header" value="/velocity/alternate-header.ftl" cascade="true"/>
+      <put-attribute name="body"   value="test.inner.definition"/>
+  </definition>
+
+  <definition name="velocity.test.inner.cascadable.definition" template="/velocity/layout.ftl">
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.cascaded.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title." cascade="true" />
+      <put-attribute name="header" value="/velocity/header.ftl" cascade="true"/>
+      <put-attribute name="body"   value="test.inner.cascadable.definition"/>
+  </definition>
+
+  <definition name="velocity.test.cascaded.template.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title." cascade="true" />
+      <put-attribute name="header" value="/velocity/header.ftl" cascade="true"/>
+      <put-attribute name="body"   value="/velocity/layout_nobody.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.cascaded.list.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title." cascade="true" />
+      <put-attribute name="header" value="/velocity/header.ftl" cascade="true"/>
+      <put-attribute name="body"   value="/velocity/putattributeslayout.ftl"/>
+      <put-attribute name="stringTest" value="This is a string" type="string" cascade="true" />
+      <put-list-attribute name="list" cascade="true">
+        <add-attribute value="valueOne" type="string" />
+        <add-attribute value="valueTwo" type="string" />
+        <add-attribute value="valueThree" type="string" />
+      </put-list-attribute>
+  </definition>
+
+  <definition name="velocity.test.reversed.definition" template="/velocity/layout_alt_title.ftl">
+      <put-attribute name="title"  value="This is the title." type="reversed"/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.reversed.explicit.definition" template="/velocity/layout_alt_title.ftl">
+      <put-attribute name="title"  value="This is the title."
+          type="org.apache.tiles.test.renderer.ReverseStringAttributeRenderer"/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/body.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.nesting.definitions" template="/velocity/layout.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body">
+          <definition template="/velocity/layout.ftl">
+              <put-attribute name="title"  value="This is a nested definition."/>
+              <put-attribute name="header" value="/velocity/header.ftl"/>
+              <put-attribute name="body"   value="/velocity/body.ftl"/>
+          </definition>
+      </put-attribute>
+  </definition>
+
+  <definition name="velocity.test.nesting.list.definitions" template="/velocity/layout_list.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-list-attribute name="list">
+          <add-attribute>
+              <definition template="/velocity/layout.ftl">
+                  <put-attribute name="title"  value="This is a nested definition."/>
+                  <put-attribute name="header" value="/velocity/header.ftl"/>
+                  <put-attribute name="body"   value="/velocity/body.ftl"/>
+              </definition>
+          </add-attribute>
+      </put-list-attribute>
+  </definition>
+
+  <definition name="velocity.test.composite.el.definition" templateExpression="${layout}"
+        preparer="org.apache.tiles.test.preparer.RequestSettingViewPreparer">
+      <put-attribute name="title"  value="This is a configured composite definition."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   expression="${requestScope.body}"/>
+  </definition>
+
+  <definition name="velocity.test.composite.el.doNotShow.definition" templateExpression="${layout}"
+        preparer="org.apache.tiles.test.preparer.RequestSettingViewPreparer">
+      <put-attribute name="title"  value="This is a configured definition."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   expression="${requestScope.doNotShowBody}"/>
+  </definition>
+
+  <definition name="velocity.test.definition.attribute.preparer" template="/velocity/layout_preparer.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+  </definition>
+
+  <definition name="velocity.test.openbody.definition" template="/velocity/layout_closebody.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+      <put-attribute name="header" value="/velocity/header.ftl"/>
+      <put-attribute name="body"   value="/velocity/layout.ftl" />
+  </definition>
+
+  <definition name="velocity.test.defaultvalues.definition" template="/velocity/layout_default.ftl">
+      <put-attribute name="title"  value="This is the title."/>
+  </definition>
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+  <definition name="velocity.test.localized.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title" value="British English locale" />
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body" value="/velocity/defaultlocale.ftl" />
+  </definition>
+
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_GB.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+  <definition name="velocity.test.localized.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title" value="American English locale" />
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body" value="/velocity/defaultlocale.ftl" />
+  </definition>
+
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_en_US.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+  <definition name="velocity.test.localized.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title" value="French locale" />
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body" value="/velocity/defaultlocale.ftl" />
+  </definition>
+
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_fr.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml Mon Mar  2 13:13:55 2009
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+
+ <!DOCTYPE tiles-definitions PUBLIC
+       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
+       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+
+<!-- Definitions for Tiles documentation   -->
+
+<tiles-definitions>
+  <definition name="velocity.test.localized.definition" template="/velocity/layout.ftl">
+      <put-attribute name="title" value="Italian locale" />
+      <put-attribute name="header" value="/velocity/header.ftl" />
+      <put-attribute name="body" value="/velocity/defaultlocale.ftl" />
+  </definition>
+
+</tiles-definitions>

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/WEB-INF/velocity/tiles-defs_it.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/alternate-header.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/alternate-header.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/alternate-header.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/alternate-header.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,25 @@
+<#--
+/*
+ * $Id: alternate-header.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<strong>This is the alternate header</strong>
+    
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/body.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/body.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/body.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/body.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,24 @@
+<#--
+/*
+ * $Id: body.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<div align="center"><b><i>This is a body</i></b></div>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/classpath.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/classpath.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/classpath.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/classpath.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,24 @@
+<#--
+/*
+ * $Id: classpath.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<div align="center"><b><i>This tile was loaded from the classpath</i></b></div>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,27 @@
+<#--
+/*
+ * $Id: defaultlocale.ftl 742469 2009-02-09 13:07:15Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<div align="center"><b><i>
+<div id="defaultLocaleMessage">Your default Locale is ${.locale}</div>
+</i></b></div>
+<a href="../selectlocale.ftl">Select another locale</a>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale_db.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale_db.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale_db.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/defaultlocale_db.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,27 @@
+<#--
+/*
+ * $Id: defaultlocale_db.ftl 742191 2009-02-08 22:43:19Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<div align="center"><b><i>
+<div id="defaultLocaleMessage">Your default Locale is <%=request.getLocale().toString() %></div>
+</i></b></div>
+<a href="../selectlocale_db.ftl">Select another locale</a>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/errorInclude.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/errorInclude.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/errorInclude.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/errorInclude.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,24 @@
+<#--
+/*
+ * $Id: errorInclude.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+The "force include" attribute has not been set.
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/exception.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/exception.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/exception.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/exception.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,25 @@
+<#--
+/*
+ * $Id: exception.ftl 742199 2009-02-08 23:05:44Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<strong>This throws an exception</strong>
+<#assign testValue=1/0 />

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/header.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/header.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/header.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/header.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,25 @@
+<#--
+/*
+ * $Id: header.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<strong>This is the header</strong>
+    
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutOne.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutOne.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutOne.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutOne.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,37 @@
+<#--
+/*
+ * $Id: layoutOne.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="yellow">This is layout one.</td>
+  </tr>
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutTwo.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutTwo.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutTwo.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layoutTwo.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,37 @@
+<#--
+/*
+ * $Id: layoutTwo.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="yellow">This is layout two.</td>
+  </tr>
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_alt_title.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_alt_title.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_alt_title.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_alt_title.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout_alt_title.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.insertAttribute name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_closebody.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_closebody.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_closebody.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_closebody.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,40 @@
+<#--
+/*
+ * $Id: layout_closebody.ftl 742191 2009-02-08 22:43:19Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td>
+    <@tiles.insertAttribute name="body">
+        <@tiles.putAttribute name="title"  value="This is a customized context" />
+        <@tiles.putAttribute name="header" value="/freemarker/header.ftl" />
+        <@tiles.putAttribute name="body"   value="/freemarker/body.ftl" />
+    </...@tiles.insertAttribute>
+    </td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_default.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_default.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_default.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_default.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout_default.ftl 742191 2009-02-08 22:43:19Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.insertAttribute name="title" defaultValue="This is the default title."/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header" defaultValue="alternate-header.ftl" defaultValueType="template"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body" defaultValue="This is the default body in the tag."/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_flush.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_flush.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_flush.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_flush.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout_flush.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header" flush="true"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body" flush="true"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_ignore.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_ignore.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_ignore.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_ignore.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout_ignore.ftl 742191 2009-02-08 22:43:19Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header" ignore=true /></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_list.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_list.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_list.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_list.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,39 @@
+<#--
+/*
+ * $Id: layout_list.ftl 743333 2009-02-11 13:22:57Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td>
+        <@tiles.importAttribute name="list"/>
+        <#list list as attribute>
+            <@tiles.insertAttribute value=attribute />
+        </#list>
+    </td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_nobody.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_nobody.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_nobody.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_nobody.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,31 @@
+<#--
+/*
+ * $Id: layout_nobody.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_override.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_override.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_override.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_override.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,37 @@
+<#--
+/*
+ * $Id: layout_override.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Green"><strong>This is the overridden template.</strong></td>
+  </tr>
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_preparer.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_preparer.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_preparer.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_preparer.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,35 @@
+<#--
+/*
+ * $Id: layout_preparer.ftl 742111 2009-02-08 14:43:29Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body"
+        preparer="org.apache.tiles.test.preparer.AttributeViewPreparer"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_roles.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_roles.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_roles.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/layout_roles.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,34 @@
+<#--
+/*
+ * $Id: layout_roles.ftl 747725 2009-02-25 10:22:04Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<table  border="2"  width="300"  bordercolor="Gray">
+  <tr>
+    <td  bgcolor="Blue"><strong><@tiles.getAsString name="title"/></strong></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="header" role="goodrole"/></td>
+  </tr>
+  <tr>
+    <td><@tiles.insertAttribute name="body" role="badrole"/></td>
+  </tr>
+</table>           
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/override.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/override.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/override.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/override.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,24 @@
+<#--
+/*
+ * $Id: override.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<div align="center"><b><i>This is an overridden content</i></b></div>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putallattributeslayout.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putallattributeslayout.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putallattributeslayout.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putallattributeslayout.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,31 @@
+<#--
+/*
+ * $Id: putallattributeslayout.ftl 742469 2009-02-09 13:07:15Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<@tiles.importAttribute/>
+
+${one}
+<ul>
+  <li>${two}</li>
+  <li>${three}</li>
+  <li>${four}</li>
+</ul>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putattributeslayout.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putattributeslayout.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putattributeslayout.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/putattributeslayout.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,32 @@
+<#--
+/*
+ * $Id: putattributeslayout.ftl 742199 2009-02-08 23:05:44Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<@tiles.importAttribute name="stringTest"/>
+<@tiles.importAttribute name="list"/>
+Single attribute "stringTest" value: ${stringTest?html} <br/><br/>
+The attribute "list" contains these values:
+<ul>
+<#list list as item>
+<li><@tiles.insertAttribute value=item /></li>
+</#list>
+</ul>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/selectlocale.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/selectlocale.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/selectlocale.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/selectlocale.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,44 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<#--
+/*
+ * $Id: selectlocale.ftl 742469 2009-02-09 13:07:15Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Select your locale</title>
+</head>
+<body>
+<form action="servlets/selectLocaleServlet">
+Select your locale:
+<select name="locale">
+<option selected="selected" value="">Default</option>
+<option value="en_US">American English</option>
+<option value="en_GB">British English</option>
+<option value="fr_FR">French</option>
+<option value="it_IT">Italian</option>
+</select>
+<input type="submit" value="Submit" />
+</form>
+<div id="defaultLocaleMessage">Your default Locale is ${.locale}</div>
+</body>
+</html>

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdecorationfilter.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdecorationfilter.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdecorationfilter.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdecorationfilter.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,24 @@
+<#--
+/*
+ * $Id: testdecorationfilter.ftl 742104 2009-02-08 14:24:40Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<i>This Content should be wrapped with the standard layout.</i>
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,29 @@
+<#--
+/*
+ * $Id: testdef.ftl 742469 2009-02-09 13:07:15Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<@tiles.definition name="templateDefinition" template="/freemarker/layout.ftl">
+  <@tiles.putAttribute name="title"  value="This is the title." />
+  <@tiles.putAttribute name="header" value="/freemarker/header.ftl" />
+  <@tiles.putAttribute name="body"   value="/freemarker/body.ftl" />
+</...@tiles.definition>
+<@tiles.insertDefinition name="templateDefinition" />
\ No newline at end of file

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_extend.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_extend.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_extend.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_extend.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,30 @@
+<#--
+/*
+ * $Id: testdef_extend.ftl 742994 2009-02-10 15:23:34Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<@tiles.definition name="test.definition.override.one" extends="freemarker.test.definition">
+  <@tiles.putAttribute name="body"   value="/freemarker/override.ftl" />
+</...@tiles.definition>
+<@tiles.definition name="test.definition.override.two" extends="test.definition.override.one">
+  <@tiles.putAttribute name="title"   value="This is an overridden title" />
+</...@tiles.definition>
+<@tiles.insertDefinition name="test.definition.override.two" />

Added: tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_list_inherit.vm
URL: http://svn.apache.org/viewvc/tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_list_inherit.vm?rev=749298&view=auto
==============================================================================
--- tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_list_inherit.vm (added)
+++ tiles/sandbox/trunk/tiles-test-sandbox/src/main/webapp/velocity/testdef_list_inherit.vm Mon Mar  2 13:13:55 2009
@@ -0,0 +1,30 @@
+<#--
+/*
+ * $Id: testdef_list_inherit.ftl 744100 2009-02-13 12:37:06Z apetrelli $
+ *
+ * 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.
+ *
+ */
+-->
+<@tiles.definition name="templateDefinition" extends="test.putAttributes">
+  <@tiles.putAttribute name="stringTest" value="This is a string" type="string"/>
+  <@tiles.putListAttribute name="list" inherit=true>
+    <@tiles.addAttribute value="valueFour" type="string" />
+  </...@tiles.putListAttribute>
+</...@tiles.definition>
+<@tiles.insertDefinition name="templateDefinition" />