org.apache.struts2.interceptor
类 CheckboxInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.interceptor.CheckboxInterceptor
- 所有已实现的接口:
- com.opensymphony.xwork2.interceptor.Interceptor, Serializable
public class CheckboxInterceptor
- extends com.opensymphony.xwork2.interceptor.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'.
- setUncheckedValue -
The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property.
- 另请参见:
- 序列化表格
从类 com.opensymphony.xwork2.interceptor.AbstractInterceptor 继承的方法 |
destroy, init |
CheckboxInterceptor
public CheckboxInterceptor()
intercept
public String intercept(com.opensymphony.xwork2.ActionInvocation ai)
throws Exception
- 指定者:
- 接口
com.opensymphony.xwork2.interceptor.Interceptor
中的 intercept
- 指定者:
- 类
com.opensymphony.xwork2.interceptor.AbstractInterceptor
中的 intercept
- 抛出:
Exception
setUncheckedValue
public void setUncheckedValue(String uncheckedValue)
- Overrides the default value for an unchecked checkbox
- 参数:
uncheckedValue
- The uncheckedValue to set