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 – installing and configuring PrimeFaces extensions

Let us see how we can install PrimeFaces extensions and configure it.

  1. Configure a primefaces-extensions.jar dependency in pom.xml:
    <dependency>
      <groupId>org.primefaces.extensions</groupId>
      <artifactId>primefaces-extensions</artifactId>
      <version>1.0.0</version>
    </dependency>
  2. Add a primefaces-extensions namespace and use any of its components. Let us use tooltip component's autoShow feature:
    <!DOCTYPE html> <html xmlns="http://www.w3c.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:pe="http://primefaces.org/ui/extensions"> <h:head> </h:head> <h:body> <h:form style="width: 800px; margin: 0 auto;"> <h:panelGrid column="3"> <h:outputLabel ...

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