[
https://issues.apache.org/jira/browse/MYFACES-4645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792880#comment-17792880
]
Thomas Andraschko commented on MYFACES-4645:
--------------------------------------------
a deeper analysis and comparison to mojarra would be great
> Conversion error for select items of type String
> ------------------------------------------------
>
> Key: MYFACES-4645
> URL: https://issues.apache.org/jira/browse/MYFACES-4645
> Project: MyFaces Core
> Issue Type: Bug
> Components: General
> Affects Versions: 4.0.1
> Reporter: Manuel K
> Priority: Major
> Attachments: image-2023-12-04-13-30-22-019.png,
> primefaces-test-duplicate-conversion-error.zip
>
>
> An error occurs when using select items of type String in combination with
> the OmniFaces SelectItemsIndexConverter. MyFaces seems to attempt to convert
> the submitted value twice, which leads to a NumberFormatException on the
> second try.
> I suspect the following if-statement in
> _org.apache.myfaces.core.api.shared.SelectItemsUtil_ to be the culprit, but
> of course have no idea why it is needed in other cases or how to fix the
> problem:
> !image-2023-12-04-13-30-22-019.png!
> Please see the attached reproducer, which produces the error when selecting a
> value in the SelectOneMenu when run withÂ
> {noformat}
> mvn clean jetty:run -Pmyfaces40{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)