[
https://issues.apache.org/jira/browse/MYFACES-3127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Andraschko resolved MYFACES-3127.
----------------------------------------
Resolution: Fixed
> Output a warning if selectOne renders no selected item
> ------------------------------------------------------
>
> Key: MYFACES-3127
> URL: https://issues.apache.org/jira/browse/MYFACES-3127
> Project: MyFaces Core
> Issue Type: Improvement
> Components: General
> Affects Versions: 2.1.0-SNAPSHOT
> Environment: myfaces core trunk
> Reporter: Martin Kočí
> Assignee: Thomas Andraschko
> Priority: Trivial
> Fix For: 4.0.0-RC5
>
>
> Common problem:
> <h:selectOneMenu value="#{bean.selectedValue}" > <!-- bean.selectedValue has
> value 'C' -->
> <f:selectItem itemValue="A" ... />
> <f:selectItem itemValue="B" ... />
> if selectedValue is null or not "A" or "B", combo is rendered, but only
> looks like "A is selected", because browser (firefox, chrome) show the first
> OPTION element as selected. Then after next submit, the real value selection
> occurs and ValueChangeEvent is delivered.
> User don't expect that because he/she didn't touch the combo.
> Suggestion : render a warning in PROJECT_STAGE Development
--
This message was sent by Atlassian Jira
(v8.20.10#820010)