[
https://issues.jboss.org/browse/RF-11426?page=com.atlassian.jira.plugin.s...
]
Brian Leathem commented on RF-11426:
------------------------------------
This was a challenge to find, but the UISelectMany#compareValues method is insensitive to
the order of the elements:
{quote}
// make sure every element in the previous array occurs the same
// number of times in the current array. This should help us
// to find out the values changed are not. Since we cannot assume
// the browser will send the elements in the same order everytime,
// it will not suffice to just compare the element position and position.
{quote}
Since the orderingList component re-orders the elements, the JSF impl never thinks the
value is changed, and so doesn't create a new valueChange event.
Resolving this issue will involve overriding the UISelectMany#compareValues functionality
(which is a protected method - Yay!)
Ordering List - valueChangeListener attribute
---------------------------------------------
Key: RF-11426
URL:
https://issues.jboss.org/browse/RF-11426
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-selects
Affects Versions: 4.1.0.Milestone2
Environment: RichFaces 4.1.0-SNAPSHOT
r.5debbf8981de1839984bdaa38b31f58ed028239d
Metamer 4.1.0-SNAPSHOT r.22728
Mojarra 2.1.2-FCS
Apache Tomcat 7.0.16
OpenJDK Runtime Environment 1.6.0_22-b22 @ Linux
Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0
Reporter: Jan Papousek
Assignee: Brian Leathem
Fix For: 4.1.0.Milestone4
It seems that the valueChangeListener attribute doesn't work.
This can be reproduced in Metamer on page faces/components/richOrderingList/simple.xhtml:
after the list is submitted, the info panel in the top right corner should contain
information from called listener.
--
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