myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOMAHAWK-1653) selectManyPicklist broken if values contain comma
Date Wed, 19 Dec 2012 14:25:13 GMT

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

Werner Punz commented on TOMAHAWK-1653:
---------------------------------------

Hi yes, thanks I have missed that method. Will do the changes there as well.

                
> selectManyPicklist broken if values contain comma
> -------------------------------------------------
>
>                 Key: TOMAHAWK-1653
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1653
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>            Reporter: Nicolas PENINGUY
>             Fix For: 1.1.15-SNAPSHOT
>
>
> Using selectManyPicklist on List<String>, it fails if values contain comma :
> <t:selectManyPicklist size="5" id="typesPickList" value="#{bean.types}">
> <f:selectItems value="#{editBean.types}" />
> </t:selectManyPicklist>
> On form submission I get : Validation Error: Value is not valid
> It seems that selected values are concatenated in an input type=hidden, with the comma
as the separator. The decoding in HtmlPicklistRenderer#decode() split on comma, so the decoded
values are not good.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message