I have a Richfaces listShuttle component that I need to sort the original values (left). For this purpose, after changing the value of the component, I have a bean support method for sorting items, and I want to rename listShuttle.
xhtml code:
<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>
This is a component that I use in other places, so I pass it some parameters.
The problem is that the action action="#{bean.sortList}"is performed after the repeat phase. I want this action to be performed before the repeat phase.
The procedure is as follows: - getDisplayedItems - setDisplayedItems - sortList
Any idea how to make listShuttle rerender after sortList action?
source
share