myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <...@myfaces.apache.org>
Subject [jira] [Created] (MYFACES-3127) Output a warning if selectOne/Many renders no selected item
Date Thu, 05 May 2011 17:26:03 GMT
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

Mime
View raw message