JSF更新自动生成ID

时间:2014-11-01 14:14:53

标签: jsf primefaces

我有以下代码(我也试过ui:repeat,它给出相同的结果):

<p:dataList value="#{bean.objects}" var="object" type="none" id="objects" rowIndexVar="index">
    <h:form>
        <p:commandButton update=":objects:#{index}:dialog" />
    </h:form>
    <h:form id="dialog">
        ...
    </h:form>
</p:dataList>

我希望更新元素带有ID“对话框”,但它不起作用:

  

找不到带表达式的组件:objects:0:从对象引用的对话框:0:j_idt35。

当我生成上下文时,如何更新不同级别的元素?

0 个答案:

没有答案