In the primefaces rio example it refreshs only the content and the Menu will stay.
In my web app the whole page will be reloaded.
Are there any settings which I missed?
Here is my template.xhml:
Code: Select all
<!DOCTYPE html>
<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"
xmlns:shiro="http://shiro.apache.org/tags">
<h:head>
<f:facet name="first">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
</f:facet>
<title><h:outputText
value="#{applicationController.currentJob.siteName}"
rendered="#{applicationController.currentJob != null and applicationController.currentJob.siteName != null}" />
<h:outputText value="#{applicationController.mandatory.siteName}"
rendered="#{applicationController.currentJob == null or applicationController.currentJob.siteName == null}" />
</title>
<h:outputScript name="js/ripple-effect.js" library="rio-layout" />
<h:outputScript name="js/perfect-scrollbar.js" library="rio-layout" />
<h:outputScript name="js/layout.js" library="rio-layout" />
<style type="text/css">
#{
layoutBean
.cssCode
}
</style>
<ui:insert name="head" />
</h:head>
<h:body rendered="#{initApplicationBean.check}">
<p:idleMonitor
timeout="#{applicationController.currentJob.idleTimeStorageAttachmentDetailPage * 1000}"
rendered="#{applicationController.currentJob.useIdleStorageAttachmentDetailPage == true}">
<p:ajax event="idle"
listener="#{idleStorageAttachmentDetailPage.onIdle()}" />
</p:idleMonitor>
<ui:include src="topbar.xhtml" />
<div id="wrapper">
<div id="wrapperIndent">
<ui:include src="layoutmenu.xhtml" />
<div id="layout-portlets-cover">
<ui:insert name="content">
Template
</ui:insert>
<div class="Container100">
<div class="ContainerIndent Fs12 BoldGray FontRobotoRegular">
<div class="EmptyBox10"></div>
<h:outputText
value="#{applicationController.currentJob.footerText}"
rendered="#{applicationController.currentJob.showFooterText == true}" />
<h:outputText
value="#{applicationController.mandatory.footerText}"
rendered="#{applicationController.mandatory.showFooterText == true and applicationController.currentJob.showFooterText != true}" />
<div class="EmptyBox10"></div>
</div>
</div>
</div>
<p:ajaxStatus onstart="PF('statusDialog').show()"
onsuccess="PF('statusDialog').hide()">
<f:facet name="start">
<p:graphicImage name="images/preloader.gif" library="rio-layout" />
</f:facet>
<f:facet name="complete">
<h:outputText value="" />
</f:facet>
</p:ajaxStatus>
<p:dialog widgetVar="statusDialog" modal="true" draggable="false"
closable="false" resizable="false" showHeader="false">
<p:graphicImage name="images/preloader.gif" library="rio-layout"
rendered="#{applicationController.currentJob.loaderCustomerPath == null}" />
<p:graphicImage
rendered="#{applicationController.currentJob.loaderCustomerPath != null}"
value="#{jobCustomLoaderRequestController.doGetLoaderPathCustomer(null)}">
</p:graphicImage>
</p:dialog>
</div>
</div>
<h:outputStylesheet library="bootstrap" name="css/bootstrap.css" />
<h:outputStylesheet name="css/animate.css" library="rio-layout" />
<h:outputStylesheet name="css/rio-font.css" library="rio-layout" />
<h:outputStylesheet name="css/ripple-effect.css" library="rio-layout" />
<h:outputStylesheet name="css/perfect-scrollbar.css"
library="rio-layout" />
<h:outputStylesheet name="css/core-layout.css" library="rio-layout" />
<h:outputStylesheet name="css/font-awesome.css" library="rio-layout" />
<h:outputStylesheet name="css/rio-layout.css" library="rio-layout" />
<h:outputStylesheet name="css/custom-theme.css" library="custom-style" />
</h:body>
</html>