Jsf 2 更新复合覆盖面板

Jsf 2 更新复合覆盖面板,jsf-2,datatable,composite,Jsf 2,Datatable,Composite,基于此,我想将从datatable更新为复合组件 查看 <h:form id="myForm"> <p:dataTable id="myTable" ...> <p:column headerText="1"> <p:commandLink id="link" actionListener="#{bean.update}"

基于此,我想将
从datatable更新为复合组件

查看

<h:form id="myForm">
    <p:dataTable id="myTable" ...>
        <p:column headerText="1">
            <p:commandLink id="link" 
                           actionListener="#{bean.update}" 
                           update=":toto" value="Val" />
            <p:overlayPanel id="panel" for="link">
                <my:view id="toto">
            </p:overlayPanel>
         </p:column>
     </p:dataTable>
</h:form>

综合

<composite:implementation>
    <span id="#{cc.clientId}">
        <p:dataTable id="toto" ...>
        </p:dataTable>
    </span>
</composite:implementation>

但是,我总是收到一条错误消息,说明无法访问组件id

那么,如何访问组合中的数据表呢

编辑:实际上,由于创建了动态ID,我改变了对
p:overlypanel
用于
p:datatable
的想法。我用一个
p:dialog
替换了它,效果非常好