I'm trying to use Primefaces layout, but I get this following error. I googled the error, but I don't see much help elsewhere in the internet.
UI Layout Initialization Error
The center-pane element does not exist.
The center-pane is a required element
What is a center-pane?
Below is the code I have have in my xhtml file.
<p:layout >
<p:layoutUnit position="north" >
<h:outputText value="North unit content." />
</p:layoutUnit>
</p:layout>
How is this caused and how can I solve it?
The response is in the answer , if you use the <p:layout>
type you need to specify a center layout like that :
<p:layout >
<p:layoutUnit position="north" >
<h:outputText value="North unit content." />
</p:layoutUnit>
<p:layoutUnit id="centerLayout" position="center">
CONTENT
</p:layoutUnit>
</p:layout>