001package org.andromda.cartridges.bpm4struts; 002 003/** 004 * Stores the BPM4Struts Global variables. 005 * 006 * @author Wouter Zoons 007 * @author Chad Brandon 008 */ 009public class Bpm4StrutsGlobals 010{ 011 /** 012 * The default number of columns to render for input fields. 013 */ 014 public static final String PROPERTY_DEFAULT_INPUT_COLUMN_COUNT = "defaultInputColumnCount"; 015 016 /** 017 * The default number of rows to render for textarea fields. 018 */ 019 public static final String PROPERTY_DEFAULT_INPUT_ROW_COUNT = "defaultInputRowCount"; 020 021 /** 022 * Stores the default date format when dates are formatted. 023 */ 024 public static final String PROPERTY_DEFAULT_DATEFORMAT = "defaultDateFormat"; 025 026 /** 027 * Stores the default time format when times are formatted. 028 */ 029 public static final String PROPERTY_DEFAULT_TIMEFORMAT = "defaultTimeFormat"; 030 031 /** 032 * Are date and time format to be strictly applied to the entered input ? 033 */ 034 public static final String PROPERTY_STRICT_DATETIMEFORMAT = "strictDateTimeFormat"; 035 036 /** 037 * Contains the default value for whether or not all forwards should perform a HTTP redirect or not. 038 */ 039 public static final String PROPERTY_DEFAULT_ACTION_REDIRECT = "defaultActionRedirect"; 040 041 /** 042 * The namespace property used to identify the action path prefix, which may very well be empty. 043 */ 044 public static final String PROPERTY_ACTION_PATH_PREFIX = "actionPathPrefix"; 045 046 /** 047 * The namespace property used to toggle the automatic generation of table decorators for displaytag. 048 */ 049 public static final String PROPERTY_GENERATE_TABLE_DECORATORS = "generateTableDecorators"; 050 051 /** 052 * The suffix used to append to decorator class names. 053 */ 054 public static final String PROPERTY_TABLE_DECORATOR_SUFFIX = "tableDecoratorSuffix"; 055 056 /** 057 * A space-separated list of types to which displaytag table are to be exported by default. 058 */ 059 public static final String PROPERTY_DEFAULT_TABLE_EXPORT_TYPES = "defaultTableExportTypes"; 060 061 /** 062 * Stores the scope of the "form" attribute when executing an action. 063 */ 064 public static final String PROPERTY_ACTION_FORM_SCOPE = "actionFormScope"; 065 066 /** 067 * Denotes the way application resource messages ought to be generated. 068 * When messages are normalized it means that elements with the same name 069 * will reuse the same label, even if they are located in entirely different 070 * use-cases or pages. 071 * <p> 072 * This results in resource bundles that are not only smaller in size but 073 * also more straightforward to translate. The downside is that it will be 074 * less evident to customize labels for certain fields (which is rarely the 075 * case anyway). 076 * <p> 077 * For backward compatibility reasons this flag is disabled by default. 078 */ 079 public static final String PROPERTY_NORMALIZE_MESSAGES = "normalizeMessages"; 080 081 /** 082 * Instructs the cartridge not to include hidden fields in the validation process. 083 */ 084 public static final String DISABLE_VALIDATION_FOR_HIDDEN_FORM_FIELDS = "disableValidationForHiddenFormFields"; 085 086 /** 087 * The suffix for form names. 088 */ 089 public static final String FORM_SUFFIX = "Form"; 090 091 /** 092 * The suffix for form implementation names. 093 */ 094 public static final String FORM_IMPLEMENTATION_SUFFIX = FORM_SUFFIX + "Impl"; 095 096 /** 097 * The namespace property used to identify the pattern used to construct the backend service's package name. 098 */ 099 public static final String SERVICE_PACKAGE_NAME_PATTERN = "servicePackageNamePattern"; 100 101 /** 102 * The namespace property used to identify the pattern used to construct the backend service's accessor. 103 */ 104 public static final String SERVICE_ACCESSOR_PATTERN = "serviceAccessorPattern"; 105}