我有一个像这样的代码:
<h:panelGroup id="customListCal">
..
<p:commandButton value="Create List" update="pickList" actionListener="#{customCalender.openList}"
style="background:#25A6E1;color:#fff;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;"/>
</h:panelGroup>
<h:panelGroup id="pickList">
..
<p:commandButton value="Cancel" update="pickList" actionListener="#{customCalender.closeList}" style="background:#25A6E1;color:red;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;" />
<p:commandButton value="Save" update="custDataTablePanel pickList" actionListener="#{customCalender.saveTargetList}" style="background:#25A6E1;color:red;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;"/>
</h:panelGroup>
<h:panelGroup id="custDataTablePanel">
<p:panel rendered="#{customCalender.dataTableVisible}">
<p:dataTable id="custDataTable" value="#{customCalender.dataTableList}" var="listName">
<p:column id="editField" headerText="Edit">
<p:commandLink title="Edit" update="pickList" actionListener="#{customCalender.openList}" rendered="#{not empty customCalender.dataTableList}">
<h:graphicImage url="resources/images/edit.JPG"/>
</p:commandLink>
</p:column>
</p:dataTable>
</p:panel>
</h:panelGroup>
当我尝试<h:panelGroup id="pickList">
从<h:panelGroup id="custDataTablePanel>
它不工作更新。发生的只是这个名为Edit
的列未在所述数据表中呈现。
我该如何<h:panelGroup id="pickList">
更新<h:panelGroup id="custDataTable">
?
<h:panelGroup id="pickList">
但是从<h:panelGroup id="customListCal"
>更新没有错误
<h:panelGroup id="customListCal">
..
<p:commandButton value="Create List" update="pickList" actionListener="#{customCalender.openList}"
style="background:#25A6E1;color:#fff;font-family:'Helvetica Neue',sans-serif;font-size:10px;border-radius:4px;"/>
</h:panelGroup>
这是如何引起的,我该如何解决?