У меня есть база данных со следующим определением:
<h:form prependId="false">
<p:dataTable id="instancesTable" lazy="false" paginator="false" var="instance"
value="#{panaceaController.instances}">
<p:column>
<f:facet name="header">
<h:outputText value="Directory"/>
</f:facet>
<p:commandLink value="#{instance.directory}" target = "instance.jsf">
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="Running"/>
</f:facet>
<h:outputText value="#{instance.running}"/>
</p:column>
<p:column>
<f:facet name="header">
Options
</f:facet>
<p:commandLink id="properties_link" async="true" update="propertiesTable" oncomplete="propertiesDialog.show();">
<h:graphicImage value="img/properties.png" />
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
<p:tooltip for="properties_link" value="Edit Properties" showEffect="fade" hideEffect="fade" />
<p:commandLink id="delete" async="true" onclick="confirmDelete.show();" >
<h:graphicImage value="img/edit-delete.png"/>
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
<p:tooltip for="delete" value="Delete This Instance" showEffect="fade" hideEffect="fade" />
<h:panelGroup rendered="#{!instance.running}">
<p:commandLink id="start" async="true" action="#{panaceaController.start}" update="messages instancesTable">
<h:graphicImage value="img/start.png"/>
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
<p:tooltip for="start" value="Start Instance" showEffect="fade" hideEffect="fade" />
</h:panelGroup>
<h:panelGroup rendered="#{instance.running}">
<p:commandLink id="stop" async="true" action="#{panaceaController.stop}" update="messages instancesTable">
<h:graphicImage value="img/stop.png"/>
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
<p:tooltip for="stop" value="Stop Instance" showEffect="fade" hideEffect="fade" />
</h:panelGroup>
<p:commandLink id="probe" async="true" action="#{panaceaController.probe}" update="messages instancesTable">
<h:graphicImage value="img/probe.png"/>
<f:setPropertyActionListener value="#{instance}" target="#{panaceaController.instance}"/>
</p:commandLink>
<p:tooltip for="probe" value="Probe if instance is running" showEffect="fade" hideEffect="fade" />
</p:column>
</p:dataTable>
</h:form>
Команда delete commandLink обновляет таблицу ОК, но другие команды просто не обновляют «instancesTable», даже если они корректно обновляют «сообщения». Я использую простые лица 3.0M3
Может кто-нибудь помочь мне с этим, пожалуйста?