After reading some more documentation I tried :

 <interceptor-ref name="completeDefault">
                <param name="checkbox.uncheckedValue">-1</param>
 </interceptor-ref>

completeDefault is a stack I created which includes the checkbox interceptor.

This is still not setting the value in my int array.



On Wed, Apr 15, 2009 at 8:29 AM, Richard Sayre <richardsa...@gmail.com> wrote:
> The Struts 2 docs says the following about the Checkbox Interceptor:
>
> setUncheckedValue - The default value of an unchecked box can be
> overridden by setting the 'uncheckedValue' property.
>
> Where in code can I call the  setUncheckedValue(String uncheckedValue) from?
>
> The problem I am facing is the fieldValue (HTML value) if the check
> box is an int.  My action has an int[] id.  I would like to set the
> value of an array element to 0 when it is not checked.  I assumed
> because the current interceptor inserts "false" for unchecked boxes
> this would automatically get converted to an int because my action
> uses an int array.  This does not occur.  Any advice would be
> appreciated.
>
> Thank you,
>
> Rich
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to