Re: [Actionframework-users] another enhancement request - checkboxes and multiple select
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <cz5...@ti...> - 2002-11-06 13:41:57
|
>> I'd like to be able to declare a java method like doSomething(String[]= >> dog) which would handle: >> >> <input type=3D"checkbox" name=3D"dog" value=3D"beagle"/> >> <input type=3D"checkbox" name=3D"dog" value=3D"spitz"/> >> >> but that doesn't work because if no dogs are selected, "dog" doesn't show >> up at all on the query string. >> If I have an array argument, it should allow for no members. Useful! Adding to 0.94 todo :) We would only have trouble with noarg doSo= mething() method (overloading). A standard property like org.actionframework.Action= Servlet.dontMapEmptyToArrays should allow disabling this feature. Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ] ___________________________________________________________ http://sms.tiscali.cz ...LOGA a MELODIE na mobil! Nyn=ED NOV=CC i pro mobiln=ED telefony SIEMENS! |