farouk
farouk

Reputation: 9

PrimeFaces Layout does not appears

Working with PrimeFaces 4.0, i include a layout in my page, but it doesn't displayed.

<p:layout position="center" id="content"  size="20">
               center
     </p:layoutUnit></p:layout> 

But, when i remove Layout tag, it works !!!

<p:layoutUnit position="center" id="content"  size="20">
               center
            </p:layoutUnit> 

any idea ?

Upvotes: 0

Views: 177

Answers (1)

bischoffdev
bischoffdev

Reputation: 175

Your first example is mixed up. Try this:

<p:layout>
    <p:layoutUnit position="center" id="content" size="20">
        center
     </p:layoutUnit>
</p:layout> 

Upvotes: 1

Related Questions