[richfaces-issues] [JBoss JIRA] (RF-12312) rich:select - duplicate labels

Denis Kniazhev (JIRA) jira-events at lists.jboss.org
Thu Jun 7 05:26:17 EDT 2012


     [ https://issues.jboss.org/browse/RF-12312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Denis Kniazhev updated RF-12312:
--------------------------------

    Environment: Ubuntu 12.04, Tomcat 6.0.35, Mojarra 2.1.8 OR MyFaces 2.1.7  (was: Ubuntu 12.04, Mojarra 2.1.8 OR MyFaces 2.1.7)

    
> 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, Tomcat 6.0.35, 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

        


More information about the richfaces-issues mailing list