public class CheckboxInterceptor extends AbstractInterceptor
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'.
| Constructor and Description |
|---|
CheckboxInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
String |
intercept(ActionInvocation ai)
Override to handle interception
|
void |
setUncheckedValue(String uncheckedValue)
Overrides the default value for an unchecked checkbox
|
destroy, initpublic String intercept(ActionInvocation ai) throws Exception
AbstractInterceptorintercept in interface Interceptorintercept in class AbstractInterceptorai - the action invocationActionInvocation.invoke(), or from the interceptor itself.Exception - any system-level error, as defined in Action.execute().public void setUncheckedValue(String uncheckedValue)
uncheckedValue - The uncheckedValue to setCopyright © 2000–2017 Apache Software Foundation. All rights reserved.