You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/06/08 22:47:45 UTC
[jira] Commented: (TAPESTRY-2387) Null value in RadioGroup returns
the string "on"
[ https://issues.apache.org/jira/browse/TAPESTRY-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603435#action_12603435 ]
Howard M. Lewis Ship commented on TAPESTRY-2387:
------------------------------------------------
I think what's happening is that the browser is supplying a default value, "on", because the value attribute was not specified.
> Null value in RadioGroup returns the string "on"
> ------------------------------------------------
>
> Key: TAPESTRY-2387
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2387
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 5.0.11
> Environment: Linux 2.6.24
> Sun JDK 6
> Reporter: Dave Dombrosky
>
> When using a null value on a radio button, or a value the gets ValueEncoded to null, the value gets submitted to the server as "on". The value should come back null, or at least as an empty String. I have no idea how "on" is getting submitted instead of the correct value.
> To test:
> 1) Create radio group with a few radio components in it.
> 2) Make one of these radio buttons have value="null".
> 3) Submit form and watch as you get the String "on" returned instead of null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org