|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.openedge.baritus.ExecutionParams
Each instance of FormBeanBase keeps an instance of ExecutionParams. ExecutionParams are used to influence the execution of population, validation and the general execution of FormBeanBase. If you want to override the defaults, you can override method init in your controller, using getExecutionParams() to get the reference to the execution params that will be used for the instance of your controller. For more finegrained (per request) control, another option is to override method getExecutionParams() itself. This method will be called each request and by default just returns the instance variable. You can vary the processing by returning a new instance of ExecutionParams (be carefull NOT to just change values in the instance variable, as this is shared by all clients), with its properties set for that request.
Constructor Summary | |
ExecutionParams()
|
Method Summary | |
java.lang.Object |
clone()
Clone this object. |
boolean |
isDoFormValidationIfFieldValidationFailed()
Indicates whether the form validators should be executed when one of the field validators failed. |
boolean |
isDoPerformIfPopulationFailed()
Whether the perform method of the control should be executed, even if the population/ validation failed. |
boolean |
isIncludeControllerParameters()
include controller parameters in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
boolean |
isIncludeRequestAttributes()
include request attributes in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
boolean |
isIncludeSessionAttributes()
include session attributes in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
boolean |
isNoCache()
if true, the no cache headers will be set |
boolean |
isPopulateAndValidate()
Get flag whether Baritus should try to populate the form bean. |
boolean |
isReuseFormBeanContext()
Whether to reuse the context for multiple invocations within the same request. |
boolean |
isSaveReqParamsAsOverrideFieldsOnError()
Gets whether all request parameters should be saved as override values when population or validation fails. |
boolean |
isSetNullForEmptyString()
If we get an empty string it should be translated to a null (true) or to an empty String false. |
boolean |
isStrictPopulationMode()
When an unexpected error occurs, should that be interpreted as a failure, or should it just be ignored. |
boolean |
isTrimStringInputValues()
Get whether string input values should be trimmed before conversion. |
void |
setDoFormValidationIfFieldValidationFailed(boolean b)
Indicates whether the form validators should be executed when one of the field validators failed. |
void |
setDoPerformIfPopulationFailed(boolean b)
Whether the perform method of the control should be executed, even if the population/ validation failed. |
void |
setIncludeControllerParameters(boolean b)
set whether to include controller parameters in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
void |
setIncludeRequestAttributes(boolean b)
set whether to include request attributes in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
void |
setIncludeSessionAttributes(boolean b)
set whether to include session attributes in the population process The order in which parameters/ attributes are used for population: 1. controller parameters (if includeControllerParameters == true) 2. session attributes (if includeSessionAttributes == true) 3. request parameters 4. request attributes (if includeRequestAttributes == true) |
void |
setNoCache(boolean noCache)
if true, the no cache headers will be set |
void |
setPopulateAndValidate(boolean populateAndValidate)
Set flag whether Baritus should try to populate the form bean. |
void |
setReuseFormBeanContext(boolean b)
Set whether to reuse the context for multiple invocations within the same request. |
void |
setSaveReqParamsAsOverrideFieldsOnError(boolean b)
Sets whether all request parameters should be saved as override values when population or validation fails. |
void |
setSetNullForEmptyString(boolean b)
If we get an empty string it should be translated to a null (true) or to an empty String false. |
void |
setStrictPopulationMode(boolean b)
When an unexpected error occurs, should that be interpreted as a failure, or should it just be ignored. |
void |
setTrimStringInputValues(boolean b)
Set whether string input values should be trimmed before conversion. |
java.lang.String |
toString()
String rep. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExecutionParams()
Method Detail |
public boolean isNoCache()
public void setNoCache(boolean noCache)
noCache
- public boolean isSetNullForEmptyString()
public void setSetNullForEmptyString(boolean b)
b
- public boolean isIncludeControllerParameters()
public void setIncludeControllerParameters(boolean b)
b
- set whether to include controller parameters in the population processpublic boolean isIncludeSessionAttributes()
public void setIncludeSessionAttributes(boolean b)
b
- set whether to include session attributes in the population processpublic boolean isIncludeRequestAttributes()
public void setIncludeRequestAttributes(boolean b)
b
- set whether to include request attributes in the population processpublic boolean isDoFormValidationIfFieldValidationFailed()
public void setDoFormValidationIfFieldValidationFailed(boolean b)
b
- whether the form validators should be executed when one of the
field validators failed.public boolean isDoPerformIfPopulationFailed()
public void setDoPerformIfPopulationFailed(boolean b)
b
- whether the perform method of the control should be executed, even if the population/
validation failed.public boolean isReuseFormBeanContext()
public void setReuseFormBeanContext(boolean b)
b
- reuse the context for multiple invocations within the same requestpublic boolean isSaveReqParamsAsOverrideFieldsOnError()
public void setSaveReqParamsAsOverrideFieldsOnError(boolean b)
b
- public boolean isStrictPopulationMode()
public void setStrictPopulationMode(boolean b)
b
- whether the population mode is strictpublic boolean isTrimStringInputValues()
public void setTrimStringInputValues(boolean b)
b
- Whether string input values should be trimmed before conversion.public boolean isPopulateAndValidate()
public void setPopulateAndValidate(boolean populateAndValidate)
populateAndValidate
- whether Baritus should try to populate the form bean.public java.lang.Object clone()
Object.clone()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |