Package org.apache.struts2.interceptor
Class CheckboxInterceptor
java.lang.Object
org.apache.struts2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.CheckboxInterceptor
- All Implemented Interfaces:
- Serializable,- ConditionalInterceptor,- Interceptor
Looks for a hidden identification field that specifies the original value of the checkbox. If the checkbox isn't submitted, insert it into the parameters as if it was with the value of 'false'.
- setUncheckedValue - The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionOverride to handle interceptionvoidsetUncheckedValue(String uncheckedValue) Overrides the default value for an unchecked checkboxMethods inherited from class org.apache.struts2.interceptor.AbstractInterceptordestroy, init, setDisabled, shouldIntercept
- 
Constructor Details- 
CheckboxInterceptorpublic CheckboxInterceptor()
 
- 
- 
Method Details- 
interceptDescription copied from class:AbstractInterceptorOverride to handle interception- Specified by:
- interceptin interface- Interceptor
- Specified by:
- interceptin class- AbstractInterceptor
- Parameters:
- ai- the action invocation
- Returns:
- the return code, either returned from ActionInvocation.invoke(), or from the interceptor itself.
- Throws:
- Exception- any system-level error, as defined in- Action.execute().
 
- 
setUncheckedValueOverrides the default value for an unchecked checkbox- Parameters:
- uncheckedValue- The uncheckedValue to set
 
 
-