p:dialog in multi-page not work correct

UI Components for JSF
Post Reply
bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

06 Feb 2015, 11:34

i paste my whole code like this :

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>


the p:dialog in page1 is work fine.but in the page2 it is not work correctly, it behind overlay.
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!
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

bacon88
Posts: 67
Joined: 29 Aug 2012, 08:36
Location: SiChuang,China

02 Mar 2015, 05:33

have someone help me?
jdk1.8.0_202 & Java EE 8
primefaces 8.0
Mojarra 2.3.9
GlassFish Server 5.1.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 50 guests