我这里有一些代码:
<f:view>
<h:form id="formA">
<p:treeTable id="tree">
<p:ajax event="select" listener="..." update="mustRefresh" />
...
</p:treeTable>
</h:form>
<h:form id="formB">
<p:panel id="mustRefresh"> ... </p:panel>
</h:form>
</f:view>
Run Code Online (Sandbox Code Playgroud)
当用户在treeTable(formA)上选择记录时,其详细信息将显示在formB上并准备编辑.我的麻烦是update ="mustRefresh"不起作用,它会抛出这样的异常:
javax.faces.FacesException: Cannot find component with identifier "mustRefresh" referenced from "A4578:formA:tree".
Run Code Online (Sandbox Code Playgroud)
我尝试使用@ form,formB,:formB和:mustRefresh但它不起作用.