org.apache.struts2.interceptor
Class CheckboxInterceptor

java.lang.Object
  extended by com.opensymphony.xwork2.interceptor.AbstractInterceptor
      extended by org.apache.struts2.interceptor.CheckboxInterceptor
All Implemented Interfaces:
Interceptor, Serializable

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'.

See Also:
Serialized Form

Constructor Summary
CheckboxInterceptor()
           
 
Method Summary
 String intercept(ActionInvocation ai)
           
 void setUncheckedValue(String uncheckedValue)
          Overrides the default value for an unchecked checkbox
 
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor
destroy, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckboxInterceptor

public CheckboxInterceptor()
Method Detail

intercept

public String intercept(ActionInvocation ai)
                 throws Exception
Specified by:
intercept in interface Interceptor
Specified by:
intercept in class AbstractInterceptor
Throws:
Exception

setUncheckedValue

public void setUncheckedValue(String uncheckedValue)
Overrides the default value for an unchecked checkbox

Parameters:
uncheckedValue - The uncheckedValue to set


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.