Hello,

The following form results in a blank value in the field value for the second checkbox:

<form action="<webwork:url page="base.action"/>" method="POST">
 
<table width="100%">
<tr>
<!-- start cell with webwork components -->
<td width="350" valign="top">
<table align="left" width="100%">
<ui:checkbox label="'Check here to receive newsletter'" name="'newsletter'" 
fieldValue="'foobar'"/>
<ui:checkbox label="'Check here to receive promotions'" name="'promotion'" 
fieldValue="'foobar'"/>
<!-- end cell with webwork components -->
</tr>
</table>
</form>

Results in the following:

                <input type="checkbox" 
                       name="newsletter"
                       value="foobar"/>

                <input type="checkbox" 
                       name="promotion"
                       value=""


If the checkboxes have different field values then it works:

<ui:checkbox label="'Check here to receive newsletter'" name="'newsletter'" 
fieldValue="'foobar'"/>
<ui:checkbox label="'Check here to receive promotions'" name="'promotion'" 
fieldValue="'barfoo'"/>

Results in the following:

                <input type="checkbox" 
                       name="newsletter"
                       value="foobar"/>

                <input type="checkbox" 
                       name="promotion"
                       value="barfoo"


This became a problem for me when using the field value of "true" in multiple 
checkboxes.  I imagine this must be a common problem.  I noticed that 1.3 version of 
this code has been refactored.  Was it to address this problem?  I haven't tried 1.3 
but I'm a little concerned about using a release candidate build at this time.

What have other developer's experience been with 1.2.1 version 1.3 RC1?  What are the 
key differences?  The most obvious one is that the logging has been redone to use 
Jakarta's common logging interface.

Thanks,
Kirk Rasmussen
Lucasfilm Ltd.


-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to