单击commandlink时无法刷新jsf页面, 在内部数据表中的commandlink,我已经问过但没有得到任何响应。
<h:dataTable id="datatableIterator" value="#{relationBean.datatables}" var="datatable" cellspacing="1" cellpadding="0" class="role_detail_section">
<h:column>
<h:dataTable id="relationIterator" value="#{datatable}" var="item" binding="#{bind}">
<h:column>
<f:facet name="header"> Relation Type Name</f:facet>
<h:outputText value="#{item.relationType}" />
</h:column>
<h:column>
<f:facet name="header">language</f:facet>
<h:outputText value="#{item.language.languageName}" />
</h:column>
<h:column>
<f:facet name="header"> Value</f:facet>
<h:inputText value="#{item.relationForm}" />
</h:column>
</h:dataTable>
</h:column>
<h:column>
<h:dataTable id="relationIterator" value="#{datatable}" var="item" binding="#{bind}">
<h:column>
<h:panelGroup rendered="#{bind.rowIndex eq 0}" id="rrr" >
<p:commandLink action="#{relationBean.deactivateRelationById(item.relationId,item.relationType)}" rendered="#{item.status.statusId==3}" value="Deativate" process="@this" update="@form" immediate="true">
</p:commandLink>
<p:commandLink action="#{relationBean.activateRelationById(item.relationId)}" rendered="#{item.status.statusId==1}" value="Activate" process="@this" update="@form" immediate="true">
</p:commandLink>
</h:panelGroup>
</h:column>
</h:dataTable>
</h:column>
我的座右铭是如何刷新页面。这样可以更新状态。