[
https://issues.jboss.org/browse/RF-11617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643102#comment-12643102
]
Brian Leathem commented on RF-11617:
------------------------------------
Indeed, there does seem to be two issues here:
1) The listener of your _a4j:ajax_ tag is not being fired. Could you please
file an issue for this? It's defeinitely worth digging into.
2) {quote} Firing the VCL
I noticed that when I click the add control the setter is called for the
pickList value= attribute, so the value has changed
{quote}
The setter should not be called here. In the current impl, the VCL isn't
fired, and the vaule shouldnt' be updated, until the component loses focus.
This is to account for a user making a sequence of mutually annihilating
changes, when the value isn't in fact changed. If you notice the setter is
being called, then this is incorrect behavior.
Does this setter still get called if you remove the nested _a4j:ajax_ tag? I
imagine not, but I just want to be sure.
> rich:pickList 4.1.0.M3 - valueChangeListener not firing correctly
> -----------------------------------------------------------------
>
> Key: RF-11617
> URL: https://issues.jboss.org/browse/RF-11617
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-selects
> Affects Versions: 4.1.0.Milestone3
> Environment: Mojarra 2.1.3, glassfish 3.1.1, Windows 7, IE8 & Chrome
> browsers
> Reporter: Brendan Healey
> Assignee: Brian Leathem
>
> I have two List<String>, selectedList & wholeList. Using the add/remove(all)
> buttons
> the value change listener is not executed on the server unless you re-click a
> row in
> one of the lists, or the browser window is minimised (or resized etc..),
> tested on IE8
> & Chrome. This has been tested with the converter= attribute and a child
> f:converter
> tag. The child a4j:ajax tag is required.
> {code}
> <rich:pickList value="#{myBean.selectedList}"
> converter="convertHashMap"
> valueChangeListener="#{myBean.testVCL}">
> <a4j:ajax/>
> <f:selectItems value="#{myBean.wholeList}"
> var="var" itemLabel="#{var}" itemValue="#{var}"/>
> </rich:pickList>
> {code}
> {code}
> public void testVCL(ValueChangeEvent event) {
> Log.log("testVCL");
> }
> {code}
> p.s. Apologies for all the edits to this issue.
--
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