So what's wrong with my suggestion to write a type converter?  It's not
exactly what they are normally used for because you wouldn't really be
converting the type.  But couldn't you check the value to see if it is null
or not and simply return a Boolean.FALSE if it is null?  I haven't tried
this but in theory it sounds like it should work.

Gregg

On Mon, Nov 17, 2008 at 4:34 PM, Mike McNally <[EMAIL PROTECTED]> wrote:

> On Mon, Nov 17, 2008 at 4:16 PM, Aaron Porter <[EMAIL PROTECTED]> wrote:
>
>>  As long as you use the Stripes <s:checkbox> tag Stripes knows whether or
>> not the boolean should be set. It stores the fields that are included in the
>> <s:form> in the __fp hidden field. Because of this, when the checkbox
>> parameter is entirely missing because it is not checked Stripes still knows
>> and should act accordingly.
>>
>
> Well that doesn't seem correct to me.  If the checkbox field is missing,
> Stripes itself has no way of knowing the semantics I want - the best it can
> do is what it appears to do, which is to give me a null. It is a little
> weird, however, because an implication of this is that it'll never give me
> an explicit "false". Again, that seems OK, because it would be presumptuous
> of Stripes to assume that just because the value I code in the tag is
> "true", that the value I want when it's unchecked is "false".  (If there
> were a way I could explicitly ask for that behavior, however, well that'd be
> cool.)
>
>
>
> --
> Turtle, turtle, on the ground,
> Pink and shiny, turn around.
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to