tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-1760) RadioGroup should support string values when value is the enum type
Date Mon, 10 Aug 2015 12:06:46 GMT

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

Hudson commented on TAP5-1760:
------------------------------

ABORTED: Integrated in tapestry-trunk-freestyle #1474 (See [https://builds.apache.org/job/tapestry-trunk-freestyle/1474/])
TAP5-1760: coerce the Radio value to the correct type if it doesn't match the RadioGroup's
value's type (jochen.kemnade: rev 8230b6290a0a7b40d58bbf96ad689f682ee0c4d3)
* tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/RadioDemo.java
* tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/RadioGroup.java
* tapestry-core/src/test/app1/RadioDemo.tml


> 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
>             Fix For: 5.4
>
>
> <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)

Mime
View raw message