1 Reply Latest reply on Jul 20, 2009 11:05 AM by edrusiani2009

    rich:combobox suggestionValues update

      Hi everyone

      i have a problem with the rich:combobox tag

      i'd like to change the values of the suggestionValues property. I'm using a bean so i've tried to change the List inside it and rerender the tag, but i had no luck. By the way, the event triggers properly and i get the values shown correctly. it's just that the list remains the same, for unknown reasons.

      there are the code parts in wich i use it.

      <rich:comboBox id="suggUguale"
              value="#{attributobean.valore}"
              suggestionValues="#{attributobean.attributoarchivio.getSuggestItems('')}"
              directInputSuggestions="true"
              width="#{attributobean.attributoarchivio.attribArch_UI.getProperty('width')}"
      />  


      <rich:comboBox
              id="GedTagCmb"
              value="#{attributoReg.attributoregistrazione.valoreToStringa}"
              suggestionValues="#{attributoReg.attributoregistrazione.attributo.getCurrentSuggestItem()}"
              directInputSuggestions="true"
              width="#{attributoReg.attributoregistrazione.attributo.attribArch_UI.getProperty('width')}"
              >
              <a4j:support actionListener="#{arcRegManager.arBeanList.onModify}" event="onblur"  eventsQueue="reg"  reRender="GedTagCmb, GedTagLongTxt, GedTagTxt, GedTagNum, GedTagDate">
                      <f:setPropertyActionListener value="#{attributoReg}" target="#{arcRegManager.arBeanList.selectedBean}" />
              </a4j:support>
      </rich:comboBox> 

      thanks for your help!                                                                  
        • 1. Re: rich:combobox suggestionValues update
          Seems like that this part doesn't work properly

          <a4j:support actionListener="#{arcRegManager.arBeanList.onModify}" event="onblur" eventsQueue="reg" reRender="GedTagCmb, GedTagLongTxt, GedTagTxt, GedTagNum, GedTagDate">
                <f:setPropertyActionListener value="#{attributoReg}" target="#{arcRegManager.arBeanList.selectedBean}" />
          </a4j:support>

          "onModify" is called, but setPropertyActionListener doesn't set "attributoReg". Any suggestions?