Is there any other way to do this than to delve into jQuery?
Yes, using plain vanilla JS. But it ends, perhaps with a browser-specific template. Donβt joke, this is not possible with JSF, since magic really has to happen on the client side. Since <p:cellEditor> does not support the requested function (so that it can just generate the necessary jQuery code on its own), you need to write it yourself.
Been there, done this:
$(document).on("keydown", ".ui-cell-editor-input input", function(event) { if (event.keyCode == 13) { $(this).closest("tr").find(".ui-row-editor .ui-icon-check").click(); } });
Just put it in some global JS file. This covers all input fields inside cell editors.
source share