when I navigate from "first" to "second" all works fine but when I navigate "first" --> "second" --> "first" the overlaypanel is not shown?! I see a short flicker and that's it.
My sources:
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:pm="http://primefaces.org/mobile">
<f:view renderKitId="PRIMEFACES_MOBILE" />
<h:head>
</h:head>
<h:body>
<pm:page id="first">
<pm:header title="FIRST" fixed="false">
<a class="jqm-navmenu-link ui-nodisc-icon ui-alt-icon ui-btn-right ui-btn ui-icon-bars ui-btn-icon-notext" href="#menu" data-role="button" role="button">Menu</a>
</pm:header>
<pm:content>
<h1>FIRST</h1>
</pm:content>
<pm:footer styleClass="footer" fixed="true" tapToggle="false">
<p>footer</p>
</pm:footer>
<h:form>
<div id="menu" data-role="panel" class="menu" data-display="overlay" data-position="right" data-theme="a">
<p:menu>
<p:submenu label="Menü">
<p:menuitem value="first" action="pm:first"/>
<p:menuitem value="second" action="pm:second"/>
</p:submenu>
</p:menu>
</div>
</h:form>
</pm:page>
<pm:page id="second">
<pm:header title="SECOND" fixed="false">
<a class="jqm-navmenu-link ui-nodisc-icon ui-alt-icon ui-btn-right ui-btn ui-icon-bars ui-btn-icon-notext" href="#menu" data-role="button" role="button">Menu</a>
</pm:header>
<pm:content>
<h1>SECOND</h1>
</pm:content>
<pm:footer styleClass="footer" fixed="true" tapToggle="false">
<p>footer</p>
</pm:footer>
<h:form>
<div id="menu" data-role="panel" class="menu" data-display="overlay" data-position="right" data-theme="a">
<p:menu>
<p:submenu label="Menü">
<p:menuitem value="first" action="pm:first"/>
<p:menuitem value="second" action="pm:second"/>
</p:submenu>
</p:menu>
</div>
</h:form>
</pm:page>
<p:growl id="messages" autoUpdate="true"/>
</h:body>
</html>