我一直在試圖將一個隊列放到文本區域,並且它不合作。我將在下面列出相關的代碼部分。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