Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5 » [javadoc | source]
    1   // Copyright 2008 The Apache Software Foundation
    2   //
    3   // Licensed under the Apache License, Version 2.0 (the "License");
    4   // you may not use this file except in compliance with the License.
    5   // You may obtain a copy of the License at
    6   //
    7   //     http://www.apache.org/licenses/LICENSE-2.0
    8   //
    9   // Unless required by applicable law or agreed to in writing, software
   10   // distributed under the License is distributed on an "AS IS" BASIS,
   11   // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12   // See the License for the specific language governing permissions and
   13   // limitations under the License.
   14   
   15   package org.apache.tapestry5;
   16   
   17   /**
   18    * Defines the names of symbols used to configure Tapestry.
   19    *
   20    * @see org.apache.tapestry5.ioc.services.SymbolSource
   21    */
   22   public class SymbolConstants
   23   {
   24       /**
   25        * Indicates whether Tapestry is running in production mode or developer mode.  The primary difference is how
   26        * exceptions are reported.
   27        */
   28       public static final String PRODUCTION_MODE = "tapestry.production-mode";
   29   
   30       /**
   31        * Symbol which may be set to "true" to force the use of absolute URIs (not relative URIs) exclusively.
   32        */
   33       public static final String FORCE_ABSOLUTE_URIS = "tapestry.force-absolute-uris";
   34   
   35       /**
   36        * If set to true, then action requests will render a page markup response immediately, rather than sending a
   37        * redirect to render the response.
   38        */
   39       public static final String SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS = "tapestry.suppress-redirect-from-action-requests";
   40   
   41       /**
   42        * The list of locales supported by the application; locales identified in the incoming request are "narrowed" to
   43        * one of these values.
   44        */
   45       public static final String SUPPORTED_LOCALES = "tapestry.supported-locales";
   46   
   47       /**
   48        * Controls whether whitespace is compressed by default in templates, or left as is. The factory default is to
   49        * compress whitespace. This can be overridden using the xml:space attribute inside template elements.
   50        */
   51       public static final String COMPRESS_WHITESPACE = "tapestry.compress-whitespace";
   52   
   53       /**
   54        * Time interval defining how often Tapestry will check for updates to local files (including classes). This number
   55        * can be raised in a production environment.
   56        */
   57       public static final String FILE_CHECK_INTERVAL = "tapestry.file-check-interval";
   58   
   59       /**
   60        * Time interval that sets how long Tapestry will wait to obtain the exclusive lock needed to check local files.
   61        */
   62       public static final String FILE_CHECK_UPDATE_TIMEOUT = "tapestry.file-check-update-timeout";
   63   
   64       /**
   65        * The version number of the core Tapestry framework, or UNKNOWN if the version number is not available (which
   66        * should only occur when developing Tapestry).
   67        */
   68       public static final String TAPESTRY_VERSION = "tapestry.version";
   69   
   70       /**
   71        * The location of the application-wide component messages catalog, relative to the web application context. This
   72        * will normally be <code>WEB-INF/app.properties</code>.
   73        */
   74       public static final String APPLICATION_CATALOG = "tapestry.app-catalog";
   75   
   76       /**
   77        * The  charset used when rendering page markup; the charset is also used as ther request encoding when handling
   78        * incoming requests. The default is "UTF-8".
   79        */
   80       public static final String CHARSET = "tapestry.charset";
   81   
   82       /**
   83        * Used as the default for the Form's autofocus and clientValidation parameters. If overridden to "false", then
   84        * Forms will not (unless explicitly specified) use client validation or autofocus, which in turn, means that most
   85        * pages with Forms will not make use of the Tapestry JavaScript stack.
   86        */
   87       public static final String FORM_CLIENT_LOGIC_ENABLED = "tapestry.form-client-logic-enabled";
   88   
   89       /**
   90        * Name of page used to report exceptions; the page must implement {@link org.apache.tapestry5.services.ExceptionReporter}.
   91        * This is used by the default exception report handler service.
   92        */
   93       public static final String EXCEPTION_REPORT_PAGE = "tapestry.exception-report-page";
   94   
   95       /**
   96        * If true, then links for external JavaScript libraries are placed at the top of the document (just inside the
   97        * &lt;body&gt; element).  If false, the default, then the libraries are placed at the bottom of the document.
   98        * Per-page initialization always goes at the bottom.
   99        */
  100       public static final String SCRIPTS_AT_TOP = "tapestry.script-at-top";
  101   
  102   }

Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5 » [javadoc | source]