My bad, it should be:
<webwork:select label="Answer" name="answer"
list="#{'Yes' : 'false', 'No', : 'true'}" />
http://www.ognl.org/2.6.3/Documentation/html/collectionConstruction.html
#mapConstruction
-Pat
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Francisco Hernandez
Sent: Thursday, October 09, 2003 12:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] how should i display a radio button Yes/No
combo?
that doesnt work, but it would be cool if it did! :)
Patrick Lightbody wrote:
> Why not just do this:
>
> <webwork:select label="Answer" name="answer"
> list="{'Yes' : 'false', 'No', : 'true'}" />
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Drew McAuliffe
> Sent: Tuesday, October 07, 2003 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] how should i display a radio button Yes/No
> combo?
>
> Would some sort of custom type conversion work? It would convert
Yes/no
> to true/false. I haven't had much luck with the converters myself, but
> it's an idea.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Francisco Hernandez
> Sent: Tuesday, October 07, 2003 6:58 AM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] how should i display a radio button Yes/No
combo?
>
>
> I need to ask a question that has a Yes/No type answer but I want the
> values sent to the action to be true/false so I can get the propertys
> set to Boolean objects, how would I go about doing this?
>
> I was going to make a class that has id/name propertys and then send
a
> List of two of those objects to the list attribute of the radio tag
then
>
> use listKey="name" and listValue="id" but it seems like overkill,
> another way was giving the radio tag a Map that has yes/no keys and
> true/false values
>
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork