我一直在试图将一个队列放到文本区域,并且它不合作。我将在下面列出相关的代码部分。Richfaces 4 Ajax:队列inputTextArea不排队
<h:form>
<a4j:queue requestDelay="1000" ignoreDupResponses="true"/>
<table>
<tr>
<td>
<h:outputText value="Notes:"/>
</td>
</tr>
<tr>
<td>
<h:inputTextarea value="#{MyActionBean.notes}">
<a4j:ajax event="keyup" listener="#{MyActionBean.updateNotes}"/>
</h:inputTextarea>
笔记按预期更新,但请求之间没有延迟。我的代码中是否存在一些错误,textAreas不适用于此?任何帮助,将不胜感激。
编辑:只是为了好的措施,也尝试了下面的代码,但它也没有工作。
<h:panelGrid columns="1" width="100%">
<h:outputText value="Notes:"/>
<h:inputTextarea value="#{MyActionBean.notes}">
<a4j:ajax event="keyup" listener="#{MyActionBean.updateNotes}">
<a4j:attachQueue id="notesQueue" requestDelay="1000"/>
</a4j:ajax>
</h:inputTextArea>
</h:panelGrid>
以供参考,该技术的版本: JBoss应用服务器7时,Seam 2.3.0,4.2.2 RichFaces的,JSF 2.1
检查更新,让我知道 – Andy