Code: Select all
<?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: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="page1">
<p:dialog id="detail1" header="test1" widgetVar="dss" appendTo="@(body)" >
<h:outputText value="What we do in life, echoes in eternity!" />
</p:dialog>
<pm:header title="page1"></pm:header>
<pm:content >
<h:form>
<p:commandButton value="Show" onclick="PF('dss').show();" type="button" />
<p:commandButton value="Ajax Action" action="pm:page2" ajax="false"/>
</h:form>
</pm:content>
</pm:page>
<pm:page id="page2">
<p:dialog id="detail2" header="test2" widgetVar="dss1" appendTo="@(body)" >
<h:outputText value="What we do in life, echoes in eternity!" />
</p:dialog>
<pm:header title="page2"></pm:header>
<pm:content >
<h:form>
<p:commandButton value="Show" onclick="PF('dss1').show();" type="button" />
</h:form>
</pm:content>
</pm:page>
</h:body>
</html>
I running it on PF5.1 and Mojarra 2.2.0
it's pf5.1's bug? I search some topic in this forum.But no one resolved .please help me! thank you!