You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/08/10 12:06:45 UTC

[jira] [Commented] (TAP5-1760) RadioGroup should support string values when value is the enum type

    [ https://issues.apache.org/jira/browse/TAP5-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679887#comment-14679887 ] 

ASF subversion and git services commented on TAP5-1760:
-------------------------------------------------------

Commit 8230b6290a0a7b40d58bbf96ad689f682ee0c4d3 in tapestry-5's branch refs/heads/master from [~jkemnade]
[ https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;h=8230b62 ]

TAP5-1760: coerce the Radio value to the correct type if it doesn't match the RadioGroup's value's type


> RadioGroup should support string values when value is the enum type
> -------------------------------------------------------------------
>
>                 Key: TAP5-1760
>                 URL: https://issues.apache.org/jira/browse/TAP5-1760
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.3, 5.4
>            Reporter: Denis Stepanov
>
> <t:radio  t:id="radio1" t:value="literal:MYENUMVALUE" />
> "MYENUMVALUE" should be equivalent to the actual MYENUMVALUE enum value
> There is a TODO already in the RadioGroup component:
>             public String toClient(Object value)
>             {
>                 // TODO: Ensure that value is of the expected type?
>                 return encoder.toClient(value);
>             }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)