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

Inplace editing using the Inplace component

The Inplace editor provides easy Inplace editing and inline content display. The Inplace editor consists of two elements: display element is the initial clickable label, and inline element is the hidden content that is displayed when display element is toggled.

Let us see how we can use the inplace editor for an input text field:

<p:inplace emptyLabel="Enter Email Here">
    <p:inputText value="admin@gmail.com"/>
</p:inplace>

Here, an admin@gmail.com e-mail ID will be displayed as a label. When you click on that label, then an input text field will be displayed with the admin@gmail.com value.

Inplace editing using the Inplace component

The Inplace editor ...

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