I have follows parant view page:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions">
<f:view encoding="UTF-8" contentType="text/html">
<ui:insert name="metadata"/>
<h:head>
<h:outputStylesheet name="sms.css"/>
<ui:insert name="header"/>
</h:head>
<h:body>
<ui:insert name="layout">
<pe:layout id="main_layout" togglerTipClosed="Показать" togglerTipOpen="Спрятать" widgetVar="mainLayoutVar">
<pe:layoutPane position="north" resizable="true" closable="false">
<ui:insert name="mainMenu">
<ui:include src="MenuFrame.xhtml"/>
</ui:insert>
</pe:layoutPane>
<pe:layoutPane id="content_body" position="center">
<ui:insert name="body"/>
<ui:insert name="dialogs"/>
</pe:layoutPane>
<pe:layoutPane position="south" resizable="false" closable="false">
<ui:include src="FooterFrame.xhtml"/>
</pe:layoutPane>
</pe:layout>
</ui:insert>
<p:growl id="msg_warn" for="arg_msg_for_warn" showDetail="true" sticky="true"/>
<p:growl id="msg_info" for="arg_msg_for_info" showDetail="true"/>
<p:growl id="msg_error" showDetail="true" autoUpdate="true" sticky="true" redisplay="false"/>
</h:body>
</f:view>
</html>
Other pages extends from this page where overriding body block. Also I have default menu frame that include in parent view:
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:form id="main_menu_form">
<p:menubar>
<p:submenu label="Списки" icon="fa fa-list">
<p:menuitem value="Клиенты" url="/view/client/ClientListView.xhtml" icon="fa fa-group"/>
<p:menuitem value="Склады" url="/view/storage/StorageListView.xhtml" icon="fa fa-archive"/>
</p:submenu>
<f:facet name="options">
<p:commandButton type="button" icon="fa fa-info"/>
</f:facet>
</p:menubar>
</h:form>
</ui:composition>
The problem is that Subitems
components from Menubar
displaying under center panel: