O'Reilly logo

PrimeFaces Cookbook by Mert Çalışkan, Oleg Varaksin

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

Working with a tabbed panel

tabView is a tabbed panel component with powerful features such as dynamic content loading, orientations, and programmatically managing tabs.

How to do it...

A basic definition for a tabbed panel with two panels would be as follows:

<p:tabView id="tabView"> <p:tab title="Volkswagen CC"> <h:panelGrid columns="2" cellpadding="5"> <h:graphicImage library="images" name="autocomplete/CC.png" /> <h:outputText value= "The Volkswagen CC (also known as the Volkswagen Passat CC) is a four-door coupé version of the Volkswagen Passat." /> </h:panelGrid> </p:tab> <p:tab title="Volkswagen Golf"> <h:panelGrid columns="2" cellpadding="5"> <h:graphicImage library="images" name="autocomplete/Golf.png" /> <h:outputText value="The Volkswagen ...

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