单击铅笔调用侦听器(primefaces 2.2.1 rowEditor)

Max*_*imG 5 html java primefaces jsf-2

在rowEditor上单击铅笔后,如何调用侦听器?我想从dataTable中准备文本以进行编辑(清除html标签以制表符并返回回车符)。你有什么想法?谢谢。

mst*_*tzn 3

实际上,数据表中没有铅笔事件。如果你想在铅笔点击后调用监听器,你可以这样做。将 rowEditor 包裹到 commandLink 中。我这样做了,它有效。

<p:commandLink id="rowEditLink" action="#{teamMB.initCombo}" ajax="true"
                        update=":formContent:teamTable>

      <p:rowEditor />
 </p:commandLink >
Run Code Online (Sandbox Code Playgroud)