在commandlink上没有刷新jsf页面

时间:2013-10-01 06:56:45

标签: jsf datatable

我想点击激活/取消激活命令链接刷新页面, 我使用了很多技巧,但它没有得到刷新(全部或部分) 以下是我的数据表

<h:panelGroup  id="r" >

<h:dataTable id="datatableIterator"  value="#{relationBean.datatables}" var="datatable" cellspacing="1" cellpadding="0" border="1" 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:column>
            <h:panelGroup rendered="#{bind.rowIndex eq 0}" id="rrr" >
                <p:commandLink ajax="true" action="#{relationBean.deactivateRelationById(item.relationId)}" rendered="#{item.status.statusId==3}" value="Deativate" update="@form rrr" process="@this">
                </p:commandLink> 
                <p:commandLink ajax="true" action="#{relationBean.activateRelationById(item.relationId)}" rendered="#{item.status.statusId==1}" value="Activate" update="@form rrr" process="@this">
                </p:commandLink> 
            </h:panelGroup>
        </h:column>
</h:dataTable>
</h:column>
        <h:column>
        <f:facet name="header">Delete</f:facet>
            <p:commandLink   action="#{relationBean.deleteDataTable}" immediate="true" update="@form" process="@this" ajax="true">
                                <h:graphicImage value="../images/delete.png"  />
                                <f:setPropertyActionListener target="#{relationBean.deleteId}" value="#{datatable}" />
                     </p:commandLink>
        </h:column>

我的bean是viewScoped 一旦我手动按f5,就会反映出变化。

0 个答案:

没有答案