• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Update Richfaces comboboxs suggesion values when the value is changed

dileep Chappalli
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am working on a rich faces application. I have to update the suggesions values in a richface's combobox component when the value is changed. For this I have done the coding as mensioned below.

on JSP
<rich:comboBox valueChangeListener="#{manageBean.valueChanged}"
id="#{bean.id}value-" suggestionValues="#{bean.values}"
directInputSuggestions="true" defaultLabel="Enter some value"
value="#{bean.selectedValue}" >
<a4j:support event="onlistclose" ajaxSingle="true"/>

Code in ValueChanged Method

List<UIComponent> components = facesContext.getViewRoot().getChildren();
component = components .get(0);
ArrayList<String> arrayList = (ArrayList<String>)((UIComboBox)component).getSuggestionValues();


though the SuggestionValues is updated the updated details are not getting reflected on the jsp page. I am not able to know what went wrong in this approch. Could any body help me in this issue.


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic