Dashboard > WebWork > ... > Interceptors > Boolean Tweaker
  WebWork Log In View a printable version of the current page.  
  Boolean Tweaker
Added by tm_jee, last edited by tm_jee on Dec 02, 2007
Labels: 
(None)

Interceptor tweaking boolean parameters. parameters with names starting by PREFIX will be stripped of it, and if no value is available under stripped name explicitely set to false.

This helps to overcome problem with boolean checkboxes ( unchecked value is not sent by browser )

To be used before ParametersInterceptor.

Parameters

  • prefix - The prefix that identify the parameter whose corresponding property will be set to false (by default). Default to 'FALSE.'
  • booleanValue - The boolean value to be set (default to 'false')

Extending the Interceptor

No known extension points.

Examples

<package ...>
     <interceptors>
          <interceptor-stack name="myStack">
             ....
             <interceptor-ref name="booleanTweaker" />
             <intercetor-ref name="params" />
             ....
          </interceptor-stack>
      </interceptors>

     <action ....>
         <interceptor-ref name="myStack" />
         ....
     </action>
     ....
</package>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators