0 Replies Latest reply on Jan 25, 2012 5:19 AM by Sandhya Radhakrishnan

    issue with a4j:support onselect event under rich:suggestionBox

    Sandhya Radhakrishnan Newbie

      when onselect event is fired after selecting suggestion ,it is setting userId to myMB

      but the value of input text[id=suggest_inpu] is getting cleared in the UI

       

      <h:inputText id="suggest_input" />

       

         <rich:suggestionbox for="suggest_input" minChars="1"

             fetchValue="" nothingLabel="no entry found"

               suggestionAction="#{myMB.suggestData}" var="suggest">

               <h:column>

                  <h:outputText value="#{suggest.firstname}" />

               </h:column>

               <h:column>

                  <h:outputText value="#{suggest.lastname}" />

               </h:column>

                  <a4j:support ajaxSingle="true" event="onselect"

                      action="#{myMB.refreshData}" reRender="data_id">

                  <f:setPropertyActionListener value="#{suggest.userID}"

                          target="#{myMB.userID}" />

               </a4j:support>

        </rich:suggestionbox>