[richfaces-issues] [JBoss JIRA] Created: (RF-6789) Suggestion box ajax requests do not go through the global a4j:queue

Nazaret Kazarian (JIRA) jira-events at lists.jboss.org
Wed Apr 15 04:25:24 EDT 2009


Suggestion box ajax requests do not go through the global a4j:queue
-------------------------------------------------------------------

                 Key: RF-6789
                 URL: https://jira.jboss.org/jira/browse/RF-6789
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
            Reporter: Nazaret Kazarian


I have setup an a4j:queue on the page h:form. I have setup javascript event handlers on the onsubmit and oncomplete events of the queue. I have a suggestionBox inside the form. It seems that ajax requests triggered from the suggestionBox do not trigger the events on the queue. Therefore, I assume that the ajax requests are not going through the queue. I also have a simple h:inputText with an a4j:support. Ajax requests triggered from this component seem to work as expected, they go through the a4j:queue.

Here is a simple test case:

	<input id="ajaxRequestsSubmitted" type="text" value="0" />
	<input id="ajaxRequestsComplete" type="text" value="0" />
	
		<h:form id="pageForm">
		
			<a4j:queue 
				onsubmit="document.getElementById('ajaxRequestsSubmitted').value = (parseInt(document.getElementById('ajaxRequestsSubmitted').value) + 1)" 
				oncomplete="document.getElementById('ajaxRequestsComplete').value = (parseInt(document.getElementById('ajaxRequestsComplete').value) + 1)"
				/>

			<h:inputText id="testInput" value="#{myBean.testValue}" />

			<rich:suggestionbox 
				id="testInput_suggBox" 
				for="testInput" 
				rules="none"
				suggestionAction="#{myBean.myAction}"
				var="result" 
				fetchValue="#{result.key}"
				minChars="0" 
				nothingLabel="#{resourceBundle.no_results_found}"
				usingSuggestObjects="true">
				<h:column>
					<h:outputText value="#{result.key}" />
				</h:column>
				<h:column>
					<h:outputText value="#{result.value}" style="font-style:italic"/>
				</h:column>
			</rich:suggestionbox>
		
			<h:inputText id="testInput2" value="#{myBean.testValue2}" >
				<a4j:support event="onkeyup">
				</a4j:support>
			</h:inputText>
		
		</h:form>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list