Denis Kniazhev created RF-12312:
-----------------------------------

             Summary: rich:select - duplicate labels
                 Key: RF-12312
                 URL: https://issues.jboss.org/browse/RF-12312
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-selects
    Affects Versions: 4.2.2.Final
         Environment: Ubuntu 12.04, Mojarra 2.1.8 OR MyFaces 2.1.7
            Reporter: Denis Kniazhev


Given rich:select:
            <rich:select value="#{bean.testValue}">
                <f:selectItem itemLabel="1" itemValue="1"/>
                <f:selectItem itemLabel="1" itemValue="abcdef"/>
                <f:selectItem itemLabel="2" itemValue="2"/>
                <f:ajax event="selectitem" listener="#{bean.testListener}"/>
            </rich:select>

and the bean:

@ManagedBean
@ViewScoped
public class Bean implements Serializable {
        private String testValue;

        public String getTestValue() {
                return testValue;
        }

        public void setTestValue(String testValue) {
                System.out.println("setter: " + testValue);
                this.testValue = testValue;
        }

        public void testListener(AjaxBehaviorEvent e) {
                System.out.println("listener: " + testValue);
        }
}

Whatever item with label "1" is selected, the output is the same:
setter: abcdef
listener: abcdef
setter: abcdef
listener: abcdef
setter: abcdef
listener: abcdef



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to