Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/go/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Primefaces 如何将对话框设置为“前”_Primefaces_Xhtml - Fatal编程技术网

Primefaces 如何将对话框设置为“前”

Primefaces 如何将对话框设置为“前”,primefaces,xhtml,Primefaces,Xhtml,嗨,伙计们,我试着做一个对话,但当我试图出现时,对话是这样的 如何将对话框设置为“前端”? 但是,当对话框已经设置在前面,我希望背景仍然淡出或类似 这就是代码 <p:remoteCommand name="processBack" action="/prpk_paperless/prpk_new.xhtml?faces-redirect=true"> </p:remoteCommand>

嗨,伙计们,我试着做一个对话,但当我试图出现时,对话是这样的

如何将对话框设置为“前端”? 但是,当对话框已经设置在前面,我希望背景仍然淡出或类似

这就是代码

    <p:remoteCommand name="processBack"
                    action="/prpk_paperless/prpk_new.xhtml?faces-redirect=true">
                </p:remoteCommand>
                <p:remoteCommand name="processSubmit"
                    action="#{pRPKNonBean.saveEdit}" update="@form">
                </p:remoteCommand>

                <!-- <p:dialog modal="false" widgetVar="successDialog" header="Info"
                    closable="false">
                    <h:panelGrid columns="1" cellpadding="2">
                        <h:outputText value="Save data berhasil" />
                        <center>
                            <p:commandButton value="Ok"
                                action="/prpk_paperless/master_prpk.xhtml?faces-redirect=true"
                                onclick="PF('successDialog').hide()" immediate="true"/>
                        </center>
                    </h:panelGrid>
                </p:dialog> -->

                <p:dialog modal="true" widgetVar="successDialog" header="Info"
                    closable="false" >
                    <h:panelGrid columns="1" cellpadding="2">
                        <h:outputText value="Save data berhasil" />
                        <center>
                            <p:commandButton value="Ok" action="/prpk_paperless/master_prpk.xhtml?faces-redirect=true"
                                onclick="PF('successDialog').hide()" immediate="true" />
                        </center>
                    </h:panelGrid>
                </p:dialog>

                <p:dialog modal="false" widgetVar="failedDialog" header="Info"
                    closable="false">
                    <h:panelGrid columns="1" cellpadding="2">
                        <h:outputText value="Save data failed" />
                        <center>
                            <p:commandButton value="Ok" action="#"
                                onclick="PF('failedDialog').hide()" />
                        </center>
                    </h:panelGrid>
                </p:dialog>

            </h:form>
                <!-- <p:commandButton value="Back" style="position: relative;"
                    action="/prpk_paperless/prpk_new.xhtml?faces-redirect=true" icon="ui-icon-circle-close"/>
                <p:commandButton value="Submit" onclick="processSubmit();"
                    style="float:right; position: relative;" icon="ui-icon-arrow-1-e" /> -->
        </p:layoutUnit>

        <p:layoutUnit position="south" size="50">

                <p:commandButton value="Back" style="position: relative;"
                    action="/prpk_paperless/prpk_new.xhtml?faces-redirect=true" icon="ui-icon-circle-close"/>

                <p:commandButton value="Submit" onclick="processSubmit();"
                    style="float:right; position: relative;" icon="ui-icon-arrow-1-e" />

        </p:layoutUnit> 


很可能是因为在布局中使用了modal=true,而没有使用appendTo属性。请参阅PF文档,这是工作,谢谢,可能的副本