I need to write a comboBox which calls a backing bean method on change event & after processing this method, I need to show a popup. Complexity lies where I need to show popup oncomplete event of the valueChangeListener. But oncomplete event is not supported by rich:comboBox. I tried to write code as:
But as comboBox don't support oncomplete event, its not possible. Can anyone help me to find out what can be done in this case? Or Is there any workaround to add support for oncomplete event to comboBox?
The valueChangeListener is not fired when a the user changes a control's value. It is invoked as part of the SUBMIT process when a form is submitted (via commandLink, commandButton or AJAX) AND a change in the value was seen in the submitted form. A valueChangeListener should NEVER set the input value (it will be overridden by JSF's internal set methods), and it is a poor place to do validation as well. The primary thing I use it for is to trigger a cascade of side-effects, such as the famous country/state/city series of selection lists, where changing the country changes the list of selectable states and changing the state changes the list of selectable cities.
An IDE is no substitute for an Intelligent Developer.