0

当我点击数据表中的commandlink,commandlink时无法刷新jsf页面,我已经问过但没有得到任何回应。

<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>

我的座右铭是以任何方式刷新页面。以便可以更新状态。

4

0 回答 0