[richfaces-issues] [JBoss JIRA] (RF-12645) rich:autoComplete's valueChangeListener property doesn't fire

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Dec 11 13:48:17 EST 2012


    [ https://issues.jboss.org/browse/RF-12645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12740740#comment-12740740 ] 

Brian Leathem commented on RF-12645:
------------------------------------

The _valueChangeListener_ (_VCL_) isn't fired until the component's _blur_ event (see: [the js code|https://github.com/richfaces/components/blob/develop/input/ui/src/main/resources/META-INF/resources/org.richfaces/AutocompleteBase.js#L104]).  The event to listen to when a selection is made is the [_selectItem_ event|https://github.com/richfaces/components/blob/develop/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.js#L460].

This was the same behaviour for the _picklist_, which we recently changed with RF-12360.  So a similar case could be made to change the behaviour with the _autocomplete_ component.

Is this _selectItem_ event sufficient for your use case?  Or are you asking for the timing of the _VCL_ to be changed?
                
> rich:autoComplete's valueChangeListener property doesn't fire
> -------------------------------------------------------------
>
>                 Key: RF-12645
>                 URL: https://issues.jboss.org/browse/RF-12645
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 4.2.2.Final
>         Environment: Google Chrome Version 21.0.1180.89;
> Debian wheezy/sid
> Richfaces 4.2.2
>            Reporter: Valdir Mendes Junior
>
> After made the search, I select the option and expected the valueChangeListener method to be called, but it' doesn't.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list