0
我正在使用RichFaces 4.2.3和JSF 2.1。A4j在由ajax調用渲染時不會調用動作
我想要在屏幕上使用下面的代碼點擊按鈕後呈現的塊內執行ajax請求。
<a4j:commandLink value="Deletar"
execute="@form"
render="result"
action="#{transacaoBean.deletar(10) }"/>
當結果呈現,我得到了JavaScript控制檯以下錯誤:
Uncaught TypeError: undefined is not a function (program):1 - (anonymous function) (program):1
runScripts jsf.js.xhtml:335 - doUpdate jsf.js.xhtml:961
response jsf.js.xhtml:2062 - richfaces.queue.response richfaces-queue.js.xhtml:413
jsf.ajax.response richfaces-queue.js.xhtml:50 - onComplete jsf.js.xhtml:1236
AjaxEngine.req.xmlReq.onreadystatechange jsf.js.xhtml:1217
如果我嘗試使用相同的a4j:commandLink
代碼,但渲染標籤時,頁面加載它的工作原理。當它被渲染爲部分響應時,我是否必須做一些不同的事情來使用a4j?
您可以參考有關此問題的錯誤報告嗎? – Industrious