RichFaces4.2.3とJSF2.1を使用しています。
次のコードを使用して、画面上のボタンを押した後にレンダリングされるブロック内で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を使用するには、別のことをする必要がありますか?