O'Reilly logo

PrimeFaces Beginner's Guide by K. Siva Prasad Reddy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – using the Inplace editor

Let us see how to use the Inplace editor with the drop-down component along with editor support, and register event listeners for the save and cancel events:

  1. Create a form using Inplace editor components, as follows:
    <h:form id="inplaceForm"> <p:panel header="Inplace Editing" > <h:panelGrid columns="2"> <p:outputLabel for="email" value="Email"/> <p:inplace id="email" emptyLabel="Enter Email Here" editor="true" effect="slide" effectSpeed="fast"> <p:ajax event="save" listener="#{userController.handleSave}"/> <p:ajax event="cancel" listener="#{userController.handleCancel}"/> <p:inputText value="#{userController.user.emailId}"/> </p:inplace> <p:outputLabel for="gender" value="Gender"/> <p:inplace id="gender" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required