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] [Resolved] (TOMAHAWK-1653) selectManyPicklist broken if values contain comma
Date Wed, 19 Dec 2012 15:33:12 GMT

     [ https://issues.apache.org/jira/browse/TOMAHAWK-1653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Werner Punz resolved TOMAHAWK-1653.
-----------------------------------

    Resolution: Fixed

added the new divider code to the encodeHiddenFields as well, I guess we are done now
                
> 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