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

Introducing the Editor component

Editor is an input component with rich text editing capabilities. The Editor component comes with a toolbar containing various options to apply HTML styles. The Editor component can be created as follows:

<p:editor id="buzzText" value="#{postController.newPost.description}"/>
Introducing the Editor component

We can customize the toolbar options using the controls attribute as follows:

<p:editor id="buzzText" value="#{postController.newPost.description}" controls="bold italic underline strikethrough font numbering size color source" />

With this customization, the Editor looks like the following screenshot:

The following is the full list of all available ...

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