Primefaces 从选项卡视图更新对话框

Primefaces 从选项卡视图更新对话框,primefaces,Primefaces,我在更新tabview ui:include页面中的对话框时遇到问题: 我有我的网页: <p:tabView id="tabView" widgetVar="tabViewMain" > <p:tab title="P1" > <ui:include src="page1.xhtml"/> </p:tab> <p:tab title="p2

我在更新tabview ui:include页面中的对话框时遇到问题:

我有我的网页:

<p:tabView id="tabView"  widgetVar="tabViewMain" >
        <p:tab title="P1" >            
            <ui:include src="page1.xhtml"/>
        </p:tab>


        <p:tab  title="p2">            
            <ui:include src="page2.xhtml"/>
        </p:tab>
</p:tabView>

  • 在第2页中,我有一个数据表,其中包含:

onDbClickByElement方法尝试执行指令,然后显示对话框

<p:dialog closeOnEscape="true"  id="editEtudeInListIdByElement"
                  header="Traitement de Lot  #{infoGeneralesManagedBean.selectedElemetRadio.lot} selectionné" widgetVar="editEtudeInListByElement" 
                   width="700" height="100%">
    <h:form id="editEtudeInListformByElement">

    </h:form>
</p:dialog>

当我尝试更新对话框时出现问题,如下所示:

 <p:ajax event="rowDblselect" listener="#{infoGeneralesManagedBean.onDbClickByElement}" 
                    update=":tabView:t:editEtudeInListIdByElement"   />

出现此错误的地方:找不到表达式为的组件 “:选项卡视图:t:EditeudeinListedByElement”引用自 “选项卡视图:t:listInjection”

我总是这样更新我的对话框,这没关系,但现在我不知道代码会发生什么

如何从选项卡视图正确更新对话框,我可以得到任何帮助吗

<p:ajax event="rowDblselect" listener="#{infoGeneralesManagedBean.onDbClickByElement}" 
                    update=":tabView:editEtudeInListIdByElement"   />


如果仍然失败,请尝试打开浏览器开发人员的工具并找到“EditeudeinListedByElement”元素。您可以尝试使用该元素的id。(:tabView:xxxx)

首先创建一个。通过将对话框代码直接放在主页面中,检查使用include是否会产生影响。并阅读(你所遇到问题的“通用”问答)。在google或StackOverflow中发布您得到的确切错误将导致命中,而这正是副本所暗示的。。。所以,与其回答问题,不如以重复的方式投票。。。保持清洁