org.apache.tapestry
Class TapestryConstants

java.lang.Object
  extended by org.apache.tapestry.TapestryConstants

public final class TapestryConstants
extends Object

Collection of common constant values used throughout Tapestry.


Field Summary
static String ACTION_EVENT
          Default client event name, "action", used in most situations.
static String ACTIVATE_EVENT
          Event triggered when a page is activated (for rendering).
static String ASSET_PATH_PREFIX
          Request path prefix that identifies an internal (on the classpath) asset.
static String COMPRESS_WHITESPACE_SYMBOL
          Controls whether whitespace is compressed by default in templates, or left as is.
static String ERROR_CLASS
          All purpose CSS class name for anything related to Tapestry errors.
static String FILE_CHECK_INTERVAL_SYMBOL
          Time interval defining how often Tapestry will check for updates to local files (including classes).
static String FILE_CHECK_UPDATE_TIMEOUT_SYMBOL
          Time interval that sets how long Tapestry will wait to obtain the exclusive lock needed to check local files.
static String FORCE_ABSOLUTE_URIS_SYMBOL
          Symbol which may be set to "true" to force the use of absolute URIs (not relative URIs) exclusively.
static String INVISIBLE_CLASS
          CSS class name that causes a rendered element to be invisible on the client side.
static String LITERAL_BINDING_PREFIX
          Binding expression prefix used for literal strings.
static String PASSIVATE_EVENT
          Event triggered when a link for a page is generated.
static String PRODUCTION_MODE_SYMBOL
          Indicates whether Tapestry is running in production mode or developer mode.
static String PROP_BINDING_PREFIX
          Binding expression prefix used to bind to a property of the component.
static String RESPONSE_CONTENT_TYPE
          Meta data key applied to pages that sets the response content type.
static String RESPONSE_ENCODING
          Meta data key applied to pages that sets the response encoding.
static String SECURE_PAGE
          Meta data key applied to pages that may only be accessed via secure methods (HTTPS).
static String SUPPORTED_LOCALES_SYMBOL
          The list of locales supported by the application; locales identified in the incoming request are "narrowed" to one of these values.
static String SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS_SYMBOL
          If set to true, then action requests will render a page markup response immediately, rather than sending a redirect to render the response.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_EVENT

public static final String ACTION_EVENT
Default client event name, "action", used in most situations.

See Also:
Constant Field Values

ACTIVATE_EVENT

public static final String ACTIVATE_EVENT
Event triggered when a page is activated (for rendering). The component event handler will be passed the context provided by the passivate event.

See Also:
Constant Field Values

PASSIVATE_EVENT

public static final String PASSIVATE_EVENT
Event triggered when a link for a page is generated. The event handler for the page may provide an object, or an array of objects, as the context for the page. These values will become part of the page's context, and will be provided back when the page is activated.

See Also:
Constant Field Values

ASSET_PATH_PREFIX

public static final String ASSET_PATH_PREFIX
Request path prefix that identifies an internal (on the classpath) asset.

See Also:
Constant Field Values

LITERAL_BINDING_PREFIX

public static final String LITERAL_BINDING_PREFIX
Binding expression prefix used for literal strings.

See Also:
Constant Field Values

PROP_BINDING_PREFIX

public static final String PROP_BINDING_PREFIX
Binding expression prefix used to bind to a property of the component.

See Also:
Constant Field Values

RESPONSE_CONTENT_TYPE

public static final String RESPONSE_CONTENT_TYPE
Meta data key applied to pages that sets the response content type. A factory default provides the value "text/html" when not overridden.

See Also:
Constant Field Values

SECURE_PAGE

public static final String SECURE_PAGE
Meta data key applied to pages that may only be accessed via secure methods (HTTPS).

See Also:
Constant Field Values

RESPONSE_ENCODING

public static final String RESPONSE_ENCODING
Meta data key applied to pages that sets the response encoding. A factory default provides the value "UTF-8" when not overriden. Content type may also be specified in the content type as parameter "charset", i.e., "text/html;charset=UTF-8".

See Also:
Constant Field Values

PRODUCTION_MODE_SYMBOL

public static final String PRODUCTION_MODE_SYMBOL
Indicates whether Tapestry is running in production mode or developer mode. The primary difference is how exceptions are reported.

See Also:
Constant Field Values

INVISIBLE_CLASS

public static final String INVISIBLE_CLASS
CSS class name that causes a rendered element to be invisible on the client side.

See Also:
Constant Field Values

ERROR_CLASS

public static final String ERROR_CLASS
All purpose CSS class name for anything related to Tapestry errors.

See Also:
Constant Field Values

FORCE_ABSOLUTE_URIS_SYMBOL

public static final String FORCE_ABSOLUTE_URIS_SYMBOL
Symbol which may be set to "true" to force the use of absolute URIs (not relative URIs) exclusively.

See Also:
Constant Field Values

SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS_SYMBOL

public static final String SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS_SYMBOL
If set to true, then action requests will render a page markup response immediately, rather than sending a redirect to render the response.

See Also:
Constant Field Values

SUPPORTED_LOCALES_SYMBOL

public static final String SUPPORTED_LOCALES_SYMBOL
The list of locales supported by the application; locales identified in the incoming request are "narrowed" to one of these values.

See Also:
Constant Field Values

COMPRESS_WHITESPACE_SYMBOL

public static final String COMPRESS_WHITESPACE_SYMBOL
Controls whether whitespace is compressed by default in templates, or left as is. The factory default is to compress whitespace. This can be overridden using the xml:space attribute inside template elements.

See Also:
Constant Field Values

FILE_CHECK_INTERVAL_SYMBOL

public static final String FILE_CHECK_INTERVAL_SYMBOL
Time interval defining how often Tapestry will check for updates to local files (including classes). This number can be raised in a production environment.

See Also:
Constant Field Values

FILE_CHECK_UPDATE_TIMEOUT_SYMBOL

public static final String FILE_CHECK_UPDATE_TIMEOUT_SYMBOL
Time interval that sets how long Tapestry will wait to obtain the exclusive lock needed to check local files.

See Also:
Constant Field Values


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.