I'm using PrimeFaces and working with the <p:inplace> component. I want to detect when the user starts editing (i.e. when the inplace switches from the output state to the input state), for example to trigger a method or make an Ajax call.
I have tried :
Listening to focus or click using plain JS and a custom onstart handler
Attaching JavaScript manually to the DOM node of the inplace label
Exploring p:cellEditor, but it doesn’t work for my use case because I would like to use dynamics columns
Is there a clean and supported way to detect when <p:inplace> enters its editable state (when the user clicks on it)?
Could this be achieved with p:ajax, or do I need to manually extend the component in Java?