This content has been marked as final.
Show 1 reply
-
1. Re: rich:autocomplete + a4j:queue/attachQueue
jlpktnst Feb 2, 2012 6:24 AM (in response to jlpktnst)I would really really need something like this... I have a large subset of data and I cannot use cachedAjax mode. And I have some custom logic.
It is quite annoying to see list popup several times loaded with different values during typing.
edit:
<a4j:jsFunction name="submitIdCbtest" action="#{bean.submitCbId}"> <a4j:param name="id" assignTo="#{bean.cbtest.cbId}"></a4j:param> </a4j:jsFunction> <rich:autocomplete value="#{bean.cbtest.desc2}" mode="ajax" minChars="1" style="width: 200px;" autocompleteMethod="#{bean.cbtestAutocomplete}" layout="table" var="row" showButton="true" fetchValue="#{row.desc2}" onselectitem="postId(event,'data-value-cbtest','data-id-cbtest',submitIdCbtest);" id="cbtestAutocomplete" > <rich:column style="width: 200px;"> <span data-value-cbtest="#{row.cbId}" data-id-cbtest="#{row.desc2}">#{row.desc2}</span> </rich:column> <a4j:queue ignoreDupResponses="true" requestDelay="1000" /> </rich:autocomplete>
This is working I think... should have tried it before. Pay attention to a4j queue position...