O'Reilly logo

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

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

Creating complex layouts

The layout component introduces a customizable border layout model that could easily be used to create complex layouts. In this recipe, we will create layouts with five distinct regions and a full-page layout that spans the whole page.

How to do it…

This customizable border layout model can be applied either to a full page or to a specific element. A basic definition of a full-page layout would be as follows:

<p:layout fullPage="true"> <p:layoutUnit position="north" size="100" header= "Top" resizable="true" closable="true" collapsible="true"> <h:outputText value="Layout content for North" /> </p:layoutUnit> <p:layoutUnit position="south" size="100" header="Bottom" resizable="true" closable="true" collapsible="true"> <h:outputText ...

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