i've been testing the dynaform stuff and i'm trying to use a checkbox
element in my form with a default value of "true". (just for the sake of
reference, the form property is called "booleanValue".) however, if i
uncheck the checkbox and submit, the dynaform is always set to "true". i'm
not sure if there's a workaround for this or not. i think the issue is that
when you submit an unchecked checkbox, no request parameter is sent for it.
so rather than sending booleanValue="false",
request.getParameter("booleanValue")=null. as a result, when
processPopulate() in RequestProcessor calls RequestUtils.populate(), the
HttpRequest has no value for booleanValue and (i guess) just leaves it with
its initialized value of "true".
is this a case where RequestUtils.populate() needs a special case for
setting null Boolean values to "false", or should the DynaActionForm logic
somehow take care of this?
finally, let me know if this is something i should submit to bugzilla. i
wasn't sure of the policy for nightly build stuff.
ab
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>