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.
I think I found the problem. All of my check boxes have the same
name. After examining the code in the interceptor:
if (key.startsWith(__checkbox_)) {
String name = key.substring(__checkbox_.length());
iterator.remove();
// is this checkbox
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
3 matches
Mail list logo