~~ $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. ~~ ----------- Tiles Configuration reference ----------- Configuration reference In this page you can find a fast reference on configuring the various parts of Tiles. These configuration parameters can be used as context parameters of a web application, or as init parameters of servlets, filters or portlets. Summary * Standard configuration [[1]] {{{config-reference.html#Main_configuration}Main configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.context.AbstractTilesApplicationContextFactory}<<>>}} | Tiles application context factory class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.context.TilesRequestContextFactory}<<>>}} | Tiles request context factory class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.factory.AbstractTilesContainerFactory}<<>>}} | Class name of the container factory | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.factory.TilesContainerFactory.MUTABLE}<<>>}} | Flag to use a mutable container | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.definition.DefinitionsFactory}<<>>}} | Definitions factory class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG}<<>>}} | List of paths that contain Tiles definitions | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.evaluator.AttributeEvaluator}<<>>}} | Attribute evaluator class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.preparer.PreparerFactory}<<>>}} | View preparer factory class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.renderer.RendererFactory}<<>>}} | Attribute renderer factory class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.renderer.impl.BasicRendererFactory.TYPE_RENDERERS}<<>>}} | Attribute renderers class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.renderer.impl.BasicRendererFactory.DEFAULT_RENDERER}<<>>}} | Default attribute renderer class name | *---------------------------------------------+--------------------------------------+ [[2]] {{{config-reference.html#ChainedTilesApplicationContextFactory_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.context.ChainedTilesApplicationContextFactory.FACTORY_CLASS_NAMES}<<>>}} | List of elementary application factory class names | *---------------------------------------------+--------------------------------------+ [[3]] {{{config-reference.html#ChainedTilesRequestContextFactory_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.context.ChainedTilesRequestContextFactory.FACTORY_CLASS_NAMES}<<>>}} | List of elementary request factory class names | *---------------------------------------------+--------------------------------------+ [[4]] {{{config-reference.html#DigesterDefinitionsReader_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.definition.digester.DigesterDefinitionsReader.PARSER_VALIDATE}<<>>}} | Flag to deactivate XML parser validation | *---------------------------------------------+--------------------------------------+ [[5]] {{{config-reference.html#UrlDefinitionsFactory_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.definition.DefinitionsReader}<<>>}} | Definitions reader class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.locale.LocaleResolver}<<>>}} | Locale resolver class name | *---------------------------------------------+--------------------------------------+ [[6]] {{{config-reference.html#Initialization_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.startup.BasicTilesInitializer.CONTAINER_KEY}<<>>}} | Container key | *---------------------------------------------+--------------------------------------+ * Extended configuration [[1]] {{{config-reference.html#KeyedDefinitionsFactoryTilesContainerFactory_configuration}<<>> configuration}}. *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.impl.KeyedDefinitionsFactoryTilesContainer.KeyExtractor}<<>>}} | Key extractor class name | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.factory.KeyedDefinitionsFactoryTilesContainerFactory.KEYS}<<>>}} | List of keys to be used | *---------------------------------------------+--------------------------------------+ | {{{config-reference.html#org.apache.tiles.DEFINITIONS_CONFIG@$\{key\}}<<>>}} | List of paths containing definitions for the given <<>> | *---------------------------------------------+--------------------------------------+ * Deprecated configuration The following configuration parameters are deprecated: * <<>>: use {{{config-reference.html#org.apache.tiles.context.ChainedTilesApplicationContextFactory.FACTORY_CLASS_NAMES}<<>>}} or {{{config-reference.html#org.apache.tiles.context.ChainedTilesRequestContextFactory.FACTORY_CLASS_NAMES}<<>>}} * <<>>: use {{{config-reference.html#org.apache.tiles.context.AbstractTilesApplicationContextFactory}<<>>}} or {{{config-reference.html#org.apache.tiles.context.TilesRequestContextFactory}<<>>}} * <<>>: use {{{config-reference.html#org.apache.tiles.factory.AbstractTilesContainerFactory}<<>>}} * <<>>: use {{{config-reference.html#org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG}<<>>}} Standard configuration parameters * {Main configuration} ** {<<>>} Specifies the application context factory class name to use. * <>: {{{apidocs/org/apache/tiles/context/AbstractTilesApplicationContextFactory.html#APPLICATION_CONTEXT_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that implements the <<>> interface. ** {<<>>} Specifies the request context factory class name to use. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#REQUEST_CONTEXT_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that implements the <<>> interface. ** {<<>>} Specifies the container factory class name to use. * <>: {{{apidocs/org/apache/tiles/factory/AbstractTilesContainerFactory.html#CONTAINER_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that extends the <<>> class. ** {<<>>} Flag to use a mutable container. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#CONTAINER_FACTORY_MUTABLE_INIT_PARAM}<<>>}}. * <>: <<>> (the container is not mutable). * <>: when specified and when its value is <<>>, the container to be created will be , i.e. definitions can be created at runtime. ** {<<>>} Specifies the context factory class name to use. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#DEFINITIONS_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that implements the <<>> interface. ** {<<>>} Specifies the attribute evaluator class name to use. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#ATTRIBUTE_EVALUATOR_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that implements the <<>> interface. ** {<<>>} Specifies the view preparer factory class name to use. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#PREPARER_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain the name of a class that implements the <<>> interface. ** {<<>>} Specify the class of the attribute renderer factory to use. * <>: {{{apidocs/org/apache/tiles/factory/TilesContainerFactory.html#RENDERER_FACTORY_INIT_PARAM}<<>>}}. * <>: <<>> * <>: when specified, it must contain the class name of the attribute renderer factory to use. ** {<<>>} Specifies the named attribute renderers that can be used. * <>: {{{apidocs/org/apache/tiles/renderer/impl/BasicRendererFactory.html#TYPE_RENDERERS_INIT_PARAM}<<>>}}. * <>: <<>>. * <>: when specified, it must contain a semicolon (;) separated list of comma-separated pairs (,) in which: ** the first element is the name of the renderer; ** the second element is the class name of the attribute renderer. ** {<<>>} Specifies the named attribute renderers that can be used. * <>: {{{apidocs/org/apache/tiles/renderer/impl/BasicRendererFactory.html#DEFAULT_RENDERER_INIT_PARAM}<<>>}}. * <>: <<>> * <>: when specified, it must contain the class name of the attribute renderer to use in case the type of an attribute is not specified. * {<<>> configuration} ** {<<>>} Specifies the list of files that contain the definitions. * <>: {{{apidocs/org/apache/tiles/definition/DefinitionsFactory.html#DEFINITIONS_CONFIG}<<>>}}. * <>: <<>>. * <>: when specified, it must contain a comma-separated list of paths of files that contain Tiles definitions. * {<<>> configuration} ** {<<>>} Specifies the list of elementary Tiles application context factory class names. * <>: {{{apidocs/org/apache/tiles/context/ChainedTilesApplicationContextFactory.html#FACTORY_CLASS_NAMES}<<>>}}. * <>: <<>> * <>: when specified, it must contain a comma-separated list of class names extending {{{apidocs/org/apache/tiles/context/AbstractTilesApplicationContextFactory.html}<<>>}}. * {<<>> configuration} ** {<<>>} Specifies the list of elementary Tiles request context factory class names. * <>: {{{apidocs/org/apache/tiles/context/ChainedTilesRequestContextFactory.html#FACTORY_CLASS_NAMES}<<>>}}. * <>: <<>> * <>: when specified, it must contain a comma-separated list of class names implementing {{{apidocs/org/apache/tiles/context/TilesRequestContextFactory.html}<<>>}}. * {<<>> configuration} ** {<<>>} Specifies if the digester should validate input XML files. * <>: {{{apidocs/org/apache/tiles/definition/digester/DigesterDefinitionsReader.html#PARSER_VALIDATE_PARAMETER_NAME}<<>>}}. * <>: <<>> * <>: when specified, it must be <<>> if you want to enable validation, <<>> otherwise.. * {<<>> configuration} ** {<<>>} Specifies the implementation of {{{apidocs/org/apache/tiles/definition/DefinitionsReader.html}<<>>}} to use. * <>: {{{apidocs/constant-values.html#org.apache.tiles.definition.DefinitionsFactory.READER_IMPL_PROPERTY}<<>>}}. * <>: <<>> * <>: when specified, it must contain the name of a class implementing {{{apidocs/org/apache/tiles/definition/DefinitionsReader.html}<<>>}}. ** {<<>>} Specifies the implementation of {{{apidocs/org/apache/tiles/locale/LocaleResolver.html}<<>>}} to use. * <>: {{{apidocs/constant-values.html#org.apache.tiles.definition.DefinitionsFactory.LOCALE_RESOLVER_IMPL_PROPERTY}<<>>}}. * <>: <<>> * <>: when specified, it must contain the name of a class implementing {{{apidocs/org/apache/tiles/locale/LocaleResolver.html}<<>>}}. * {Initialization configuration} ** {<<>>} Specifies the key under which the Tiles container will be stored. * <>: {{{apidocs/org/apache/tiles/startup/BasicTilesInitializer.html#CONTAINER_KEY_INIT_PARAMETER}<<>>}}. * <>: <<>> (default container) * <>: when specified, it must contain the key under which the container will be stored. Extended configuration parameters * {<<>> configuration} ** {<<>>} Specifies the implementation of {{{apidocs/org/apache/tiles/impl/KeyedDefinitionsFactoryTilesContainer.KeyExtractor.html}<<>>}} to use. * <>: {{{apidocs/org/apache/tiles/factory/KeyedDefinitionsFactoryTilesContainerFactory.html#KEY_EXTRACTOR_CLASS_INIT_PARAM}<<>>}}. * <>: <<>> * <>: when specified, it must contain the name of a class implementing {{{apidocs/org/apache/tiles/impl/KeyedDefinitionsFactoryTilesContainer.KeyExtractor.html}<<>>}}. ** {<<>>} Specifies the list of keys to be used to assign a key to each Definitions Factory. * <>: {{{apidocs/org/apache/tiles/factory/KeyedDefinitionsFactoryTilesContainerFactory.html#CONTAINER_KEYS_INIT_PARAM}<<>>}}. * <>: None, it must be specified explicitly. * <>: when specified, it must contain a comma-separated list of keys to be used to assign a key to each definitions factory. ** {<<>>} Specifies the list of files that contain the definitions for the corresponding <<<$\{key\}>>>. * <>: {{{apidocs/org/apache/tiles/impl/KeyedDefinitionsFactoryTilesContainer.html#DEFINITIONS_CONFIG_PREFIX}<<>>}}. * <>: <<>>. * <>: when specified, it must contain a comma-separated list of paths of files that contain Tiles definitions to assign to the needed <<<$\{key\}>>>.