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, init
public String intercept(ActionInvocation ai) throws Exception
AbstractInterceptor
intercept
in interface Interceptor
intercept
in class AbstractInterceptor
ai
- 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–2020 Apache Software Foundation. All rights reserved.