I have a bunch of check boxes called userId. In my action I have int userId[] and setUserId(int[] ids)
When I select a checkbox the conversion works normally. When I dont check any boxes on the form and submit, I get the following: 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Property: userId 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Class: com.abc.UsersAction 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - converter is null for property userId. Mapping size: 4 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - field-level type converter for property [userId] = none found 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - global-level type converter for property [userId] = none found 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - falling back to default type converter [com.opensymphony.xwork2.util.xworkbasicconver...@82fba9] 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Property: userId 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Class: com.abc.UsersAction 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - converter is null for property userId. Mapping size: 4 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - field-level type converter for property [userId] = none found 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - global-level type converter for property [userId] = none found 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - falling back to default type converter [com.opensymphony.xwork2.util.xworkbasicconver...@82fba9] 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Error setting value ognl.MethodFailedException: Method "setUserId" failed for object com.abc.usersact...@1db2215 [java.lang.NoSuchMethodException: setUserId(java.lang.String)] For some reason when no ids are selected it is trying to set the value as a String. 1) Is this normal behavior? 2) Is there a way to work around it? Thank you, Rich --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org