Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.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
Jsf 2 primefaces对话框未显示_Jsf 2_Primefaces_Dialog - Fatal编程技术网

Jsf 2 primefaces对话框未显示

Jsf 2 primefaces对话框未显示,jsf-2,primefaces,dialog,Jsf 2,Primefaces,Dialog,大家好,primefaces对话框不再显示。这是我的密码。请帮忙,我做错什么了吗。 这是我从标题为“更多”的列调用对话框的代码: <h:panelGrid columns="2"> <p:dataTable id="tbl" var="holder"> ... <p:column> <f:facet name="header">

大家好,primefaces对话框不再显示。这是我的密码。请帮忙,我做错什么了吗。 这是我从标题为“更多”的列调用对话框的代码:

    <h:panelGrid columns="2">
    <p:dataTable id="tbl" var="holder">
    ...
    <p:column>  
                    <f:facet name="header">  
                        <h:outputText value="More"/>  
                    </f:facet>  
                    <p:commandLink value="more" type="button" styleClass="ui-icon ui-icon-search" actionListener="#{editCustomerView.viewCustomerInfo}" update=":content_form:customerInfoDialog" oncomplete="_cusInfoDlg.show()">
                        <f:attribute name="currentCustomer" value="#{holder}"/>
                    </p:commandLink>
    </p:column>
    ...
    </p:dataTable>
    </h:panelGrid>

//dialog is here

    <p:dialog id="customerInfoDialog" widgetVar="_cusInfoDlg" header="Зээлдэгчийн мэдээлэл">
            <ui:include src="#{editCustomerView.infoPage}.xhtml"/>
            <h:commandButton value="ok" styleClass="btn" style="width: 100px; float: right; margin-right: 20px; margin-bottom: 20px;" onclick="customerInfoDlg.hide(); return false;"/>
    </p:dialog>

我通常通过Javascript打开对话框

    PF('_cusInfoDlg').show();

我通过在对话框中添加dynamic='true'解决了这个问题。但是为什么要这样解决呢?如果你从
中删除
type=“button”
,你是否已经从旧版本迁移到了新版本?请澄清为什么要这样做,因为在OP的示例中,它也是通过oncomplete中的javascript打开的!!!
    PF('_cusInfoDlg').show();