簡體   English   中英

在動作偵聽器完成之前執行richfaces reRender

[英]richfaces reRender executed before action listener completion

我有一個Richfaces listShuttle組件,我需要對源值(左側)進行排序。 為此,在組件的值發生變化之后,我有一個支持bean方法來對元素進行排序,我想重新渲染listShuttle。

xhtml代碼:

<a4j:region>
    <rich:listShuttle id="#{id}_listShuttle"
        sourceValue="#{bean.displayedItems}"
        targetValue="#{bean.selectedItems}" var="item"
        fastOrderControlsVisible="false" orderControlsVisible="false"
        fastMoveControlsVisible="false"
        style="margin-right:15px;margin-bottom:15px;">

        <f:converter converterId="#{converterId}" />
        <a4j:support event="onlistchanged" action="#{bean.sortList}"
            reRender="#{updateId}, #{id}_listShuttle" />

        <rich:column>
            <h:outputText value="#{item.name}" />
        </rich:column>
    </rich:listShuttle>
</a4j:region>

它是我在更多地方使用的組件,所以我將一些參數傳遞給它。

問題是在rerender階段之后執行action action="#{bean.sortList}" 我希望在重新渲染階段之前執行此操作。

動作的順序如下: - getDisplayedItems - setDisplayedItems - sortList

知道如何在sortList操作后使listShuttle重新渲染嗎?

將sort = true添加到sortList中可以做到嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM