You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Kočí (JIRA)" <de...@myfaces.apache.org> on 2011/05/05 19:26:03 UTC
[jira] [Created] (MYFACES-3127) Output a warning if selectOne/Many
renders no selected item
Output a warning if selectOne/Many 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: Martin Kočí
Priority: Trivial
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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira