4 Replies Latest reply on Nov 15, 2013 1:53 AM by alexey plotnikov

    RF4.3.4: Autocomplete and queue

    alexey plotnikov Newbie

      Hi all, i use Richfaces 4.3.4.Final. This my example:

      <rich:autocomplete mode="ajax" autocompleteMethod="#{autocomplete.autocompleteLegals}"
                         minChars="0" var="s" fetchValue="#{s.realName}" id="legal-suggestion"
                         autofill="false"
                         onselectitem="autocompleteChangeLegal(event.target)" style="display: inline;"
                         layout="table" value="#{autocomplete.legalName}"
                         required="true">
                         <h:column>
                            <h:outputText style="display:none;" value="#{s.id}"/>
                            <h:outputText style="display:none;" value="#{s.realName}"/>
                         </h:column>
                         <h:column>
                            <h:outputText value="#{s.name}" escape="false"/>
                         </h:column>
                         <a4j:queue requestDelay="500" ignoreDupResponses="true" />
      </rich:autocomplete>
      
      

      In example above - a4j:queue IGNORING! But in example below:

      <rich:autocomplete mode="ajax" autocompleteMethod="#{autocomplete.autocompleteLegals}"
                         minChars="0" var="s" fetchValue="#{s.realName}" id="legal-suggestion"
                         autofill="false"
                         onselectitem="autocompleteChangeLegal(event.target)" style="display: inline;"
                         layout="table" value="#{autocomplete.legalName}"
                         required="true">
                         <a4j:queue requestDelay="500" ignoreDupResponses="true" />
                         <h:column>
                            <h:outputText style="display:none;" value="#{s.id}"/>
                            <h:outputText style="display:none;" value="#{s.realName}"/>
                         </h:column>
                         <h:column>
                            <h:outputText value="#{s.name}" escape="false"/>
                         </h:column>
      </rich:autocomplete>
      
      

      a4j:queue works successfully.

      In documentation here Component Reference i not found any information about this. Is it bug?