So I am a bit confused on the use of a checkbox with a Boolean attribute.

>From the taglib docs...

"When the value attribute is omitted, as above, the checkbox defaults
to the simple behaviour of sending "true" to the server when checked
and nothing to the server when unchecked. For this reason it is best
to use boolean values, or Boolean values initialized to
Boolean.FALSE."

In my action I have a custom domain object with a Boolean attribute
contained in it.  When the chekbox is not selcted the value of the
field is set to Null.  In the default constructor of my domain object
I initialized the Boolean field to Boolean.FALSE.

Everything work fine if I use boolean instead of Boolean.  What more
am I expected to "initialize" when using a Boolean or is this a bug?

Nathan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to