[
https://issues.jboss.org/browse/RF-11902?page=com.atlassian.jira.plugin.s...
]
Rene O commented on RF-11902:
-----------------------------
I have investigated this a bit more:
1. If my global queue has no name, then rich:autocomplete uses the global request delay
{code:title=global queue without name}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head >
<title>jsf2testcase</title>
</h:head>
<h:body>
<a4j:queue id="myGlobalQ" requestDelay="2000"
ignoreDupResponses="true"/>
<h:form id="form">
<rich:autocomplete id="mya" minChars="1"
mode="cachedAjax" value="#{model.testValue}"
autocompleteMethod="#{ctr.doAutocomplete}">
</rich:autocomplete>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<a4j:status>
<f:facet name="start">
Please wait...
</f:facet>
</a4j:status>
</h:form>
</h:body>
</html>
{code}
2. If my global queue has a name, then rich:autocomplete doesn't use the global
request delay and executes immediately
{code:title=global queue with name}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head >
<title>jsf2testcase</title>
</h:head>
<h:body>
<a4j:queue id="myGlobalQ" name="myGlobalQ"
requestDelay="2000" ignoreDupResponses="true"/>
<h:form id="form">
<rich:autocomplete id="mya" minChars="1"
mode="cachedAjax" value="#{model.testValue}"
autocompleteMethod="#{ctr.doAutocomplete}">
</rich:autocomplete>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<a4j:status>
<f:facet name="start">
Please wait...
</f:facet>
</a4j:status>
</h:form>
</h:body>
</html>
{code}
3. If i use an attachedQueue with the name of my global queue, then execution starts again
immediately and in addition the suggestion list shows no values, but has the correct size
(This behaviour also occurs if the attached queue has no name)
{code:title=attached queue with name}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head >
<title>jsf2testcase</title>
</h:head>
<h:body>
<a4j:queue id="myGlobalQ" name="myGlobalQ"
requestDelay="2000" ignoreDupResponses="true"/>
<h:form id="form">
<rich:autocomplete id="mya" minChars="1"
mode="cachedAjax" value="#{model.testValue}"
autocompleteMethod="#{ctr.doAutocomplete}">
<a4j:attachQueue id="myAttachedQ" name="myGlobalQ"
requestDelay="300" />
</rich:autocomplete>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<a4j:status>
<f:facet name="start">
Please wait...
</f:facet>
</a4j:status>
</h:form>
</h:body>
</html>
{code}
Now the question is, do i something wrong or is this a bug?
Extra information: I have used richfaces-4.2.0.CR1 and myfaces-2.1.6
[rich:autocomplete] add attribute queueId
-----------------------------------------
Key: RF-11902
URL:
https://issues.jboss.org/browse/RF-11902
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 4.1.0.Final
Reporter: Rene O
Labels: waiting_on_user
It would be nice if rich:autocomplete has an attribute queueId like a4j:ajax component.
With this you will have more control over the ajax requests if ajax mode is enabled within
autocomplete component.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira