radio button trouble
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <OFD10FCC3D.1BA83EF5-ON852574CC.0053990D-852574CC.0053EAC2@tsys.com> |
11:11:02,383 line:190 ERROR [FeeController->validatePage] Field error in
object 'feeSetup' on field 'programId': rejected value
[[Ljava.lang.String;@19fbd7c]; codes
[typeMismatch.feeSetup.programId,typeMismatch.programId,typeMismatch.java.lang.Long,typeMismatch];
arguments
[org.springframework.context.support.DefaultMessageSourceResolvable: codes
[feeSetup.programId,programId]; arguments []; default message
[programId]]; default message [Failed to convert property value of type
[java.lang.String[]] to required type [java.lang.Long] for property
'programId'; nested exception is java.lang.NumberFormatException: For
input string: ",621024"]
Why is it treating the radio input like a multiselect drop down?
Snippet of the template markup.
<@display.table name="programs" id="program" style="width:90%" sort=
"external" pagesize=20 size=fullSize export=false defaultsort=2 class=
"defaultTable" partialList=true >
<@display.column >
<input style="width:auto; border:0px;" type="radio" name=
"programId" value="${program.id?c}" />
</@display.column>
Snippet of the generated html. Looks like a good radio button to me.
<tr class="oddRow">
<td> <input style="width:auto; border:0px;" type="radio"
name="programId" value="621023" />
</td>
<td>621023</td>
<td>Nat Benefit Serv.</td>
<td>National Benefit Services 2</td></tr>
<tr class="evenRow">
<td> <input style="width:auto; border:0px;" type="radio"
name="programId" value="621024" />
</td>
<td>621024</td>
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. The information may also constitute a legally
privileged confidential communication. If the reader of this
message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified
that you have received this communication in error and that any
review, dissemination, copying, or unauthorized use of this
information, or the taking of any action in reliance on the
contents of this information is strictly prohibited. If you have
received this communication in error, please notify us immediately
by e-mail, and delete the original message. Thank you
-------------------------------------------------------------------------
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=/