Jsf 更新Iframe外部的组件

Jsf 更新Iframe外部的组件,jsf,iframe,primefaces,Jsf,Iframe,Primefaces,我想更新驻留在iframe之外的组件。我将从iframe内部的组件调用update,并更新iframe外部的组件。我怎样才能做到 <p:tabView id="tab_view" dynamic="true" cache="true" scrollable="true"> <p:tab id="tab_1" title="Test"> <iframe id="tab_frame" src="#

我想更新驻留在iframe之外的组件。我将从iframe内部的组件调用update,并更新iframe外部的组件。我怎样才能做到

<p:tabView id="tab_view" dynamic="true" cache="true" scrollable="true">

        <p:tab id="tab_1" title="Test">
            <iframe id="tab_frame"
                src="#{request.contextPath}/xxx/xxx.xhtml"
                width="100%" height="285px" style="border-width: 0px;" />
        </p:tab>
    </p:tabView>    

xxx.xhtml

<h:form id="testform">
    <p:commandLink value="Click here" action="#{controller.methodY()}" style="color:blue;" update="tab_view"/>
</h:form>


commandlink中的更新不起作用。如何更新我的tabview?

您是否尝试过
update=“:tab_view
?(假设您没有tab_view的任何命名容器父级)@mrganser我尝试过在命令链接的update属性中指定tabview id。是的,我想添加冒号):就在tabview idi尝试之前,它说找不到一个组件。无法从中找到表达式为“tab_view”的组件…我不确定,您是否可以使用
ui:include
而不是iframe?这样的话,我确信只要加上冒号就行了,否则我就不知所措了。。。