3 Replies Latest reply on Apr 9, 2008 7:36 PM by sergeysmirnov

    rich:suggestionbox ignoring ajaxSingle

    gsegura

      Hello I'm using a rich:suggestionbox as shown below, I've noticed that all form fields are sent each time autocomplete is invoked even though ajaxSinge is true.
      That is not suppose to happen right?

      here is relevant code:

      <rich:suggestionbox
       ajaxSingle="true"
       id="sboxName" for="txtName"
       suggestionAction="#{editor.autocomplete}" var="user"
       fetchValue="#{user.code}"
       rows="10"
       minChars="2"
       cellpadding="1"
       nothingLabel="#{messages.lblNoMatchFound}"
       onselect="javascript:updateName();">
      <h:column>
       <h:outputText value="#{user.name}" style="font-weight:bolder" /><br/>
       <h:outputText value="#{user.detail}" style="font-style:italic"/>
      </h:column>
      </rich:suggestionbox>



      notice ajaxSingle="true" is declared, however the post request includes other fields:
      AJAXREQUEST=_viewRoot&f=f&f%3AtxtName=dfssasa&f%3AsboxName_selection=
      &f%3AtxtDescription=&f%3AsendDateInputDate=
      &f%3AsendDateInputCurrentDate=04%2F2008&javax.faces.ViewState=_id3
      &f%3AsboxName=f%3AsboxName&inputvalue=blabla&




      Am I missing something?
      regards