简体   繁体   中英

Can primefaces call a listener on datatable row edit click?

我想知道在单击“ pen”编辑时是否可以使用ajax事件,但是在行变为可编辑的时候(而不是行并更新行)。

In PF User Guide 5; There is a list of ajax behaviour events for datatable.

Inside this list, there is;

rowEditInit : When a row switches to edit mode

so I guess it may be suitable for your problem

<p:ajax event="rowEditInit " listener="#{beanName.methodName}" update="partToBeUpdated" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM