0

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?

asked Jul 30, 2025 at 15:06

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.