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'.
ConditionalInterceptor.LegacyAdapter
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
|
intercept, shouldIntercept, shouldIntercept
destroy, init, setDisabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt
adapt
destroy, init
public String intercept(ActionInvocation ai) throws Exception
AbstractInterceptor
intercept
in class AbstractInterceptor
Exception
public void setUncheckedValue(String uncheckedValue)
uncheckedValue
- The uncheckedValue to setCopyright © 2000–2024 Apache Software Foundation. All rights reserved.