[
https://issues.jboss.org/browse/RF-13349?page=com.atlassian.jira.plugin.s...
]
Pavol Pitonak updated RF-13349:
-------------------------------
Tester: Pavol Pitonak
a4j:queue must be first child for rich:autocomplete
---------------------------------------------------
Key: RF-13349
URL:
https://issues.jboss.org/browse/RF-13349
Project: RichFaces
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 4.3.4
Reporter: alexey plotnikov
Assignee: Pavol Pitonak
Labels: waiting_on_user
All described here
https://community.jboss.org/message/845845 but i'll repeat.
In this example:
{code}
<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>
{code}
a4j:queue - is *ignored!*
But here
{code}
<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>
{code}
a4j:queue *not ignored*. So a4j:queue must be first child for autocomplete.
For another components a4j:queue can be any child(first or last).
For example this code:
{code}
<h:selectOneMenu value="#{agentMenuMassList.menuProfile}">
<s:selectItems noSelectionLabel="#{messages['pages.noSelect']}"
value="#{agentMenuMassList.menuProfiles}" var="m"
label="#{m.name}"/>
<s:convertEntity/>
<a4j:ajax event="change" render="editPanel,menuPanel"
listener="#{agentMenuMassList.change}"/>
<a4j:queue requestDelay="5000" />
</h:selectOneMenu>
{code}
*not* ignoring a4j:queue
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira