我正在使用以下代码
<rich:tree id="ed-treeNetwrk000" toggleType="ajax" binding="# {bean.treeBinding}" toggleListener="#{bean.processTreeToggle}"
selectionType="ajax" var="item3"
selectionChangeListener="#{bean.processTreeSelectionChange}"
rendered="#{!anotherBean.isEditValue}"
reRender="selectedNode"
render="panel1,panel2,panel3">
<rich:treeModelRecursiveAdaptor id="ed-networkList00"
roots="#{bean.networkRoot}"
nodes="#{item3.value}">
<rich:treeNode id="ed-networkName"
iconCollapsed="/resources/images/collapse.png"
iconExpanded="/resources/images/expand.png"> #{item3.value.name}
<rich:contextMenu id="ed-contextMenuNetwork5" target="ed-networkName" direction="auto" attached="true" targetSelector=".rootNetwork">
<rich:menuItem id="ed-createEquipNw" label="Add in Collection" action="#{bean.addInCollectionEdit}">
<f:param name="action" value="delete" />
</rich:menuItem>
</rich:contextMenu>
</rich:treeNode>
</rich:treeModelAdaptor>
</rich:treeModelRecursiveAdaptor>
</rich:tree>
当第一次呈现页面时,它会呈现正常,但如果我将尝试打开同一页面,它将失败并显示错误
java.lang.IllegalStateException:已找到组件ID 在视图中
注意 - 我的Bean是会话作用域。