rich:orderingList for add and delete
nujiah001 Nov 15, 2010 10:08 PMwhen i use rich:orderingList ,the selection dont good work when i delete
this is code
xhtml
<c:forEach items="#{createFlow.activityPerformerList}" var="activity">
<rich:panel>
<table>
<tr>
<td>
<h:panelGrid columns="4" >
<rich:panel style="border:0;">
<h:outputText value="#{msr.ID_WEB_WORKFLOW_ACTIVITYNAME}" style="padding:0px;" />
</rich:panel>
<rich:panel style="border:0;padding-right:30px;">
<h:outputText value="#{activity.activityOrderTitle}" />
</rich:panel>
<rich:panel style="border:0;">
<h:outputText value="#{msr.ID_WEB_WORKFLOW_PROCESS_LASTTIME}" style="padding:0px;" />
</rich:panel>
<rich:panel style="border:0;">
<rich:calendar value="#{activity.lastDate}"
locale="#{calendarBean.locale}"
popup="#{calendarBean.popup}"
datePattern="#{calendarBean.pattern}"
showApplyButton="#{calendarBean.showApply}"/>
</rich:panel>
</h:panelGrid>
</td>
</tr>
<tr>
<td>
<h:panelGrid columns="2">
<rich:panel style="border:0;">
<h:outputText value="#{msr.ID_WEB_WORKFLOW_APPROVALPERSON}" style="padding-right:12px;" />
</rich:panel>
<h:panelGrid columns="2" columnClasses="top 95per, top 5per" width="330px">
<rich:orderingList value="#{activity.userNameList}" var="userFullName" listHeight="50" listWidth="305"
fastOrderControlsVisible="false" selection="#{createFlow.selectedUser}"
orderControlsVisible="false" id="#{activity.activityOrderTitle}" rowKeyVar="row" >
<rich:column width="100">
<h:outputText value="#{userFullName}"></h:outputText>
</rich:column>
</rich:orderingList>
<h:panelGrid columns="1" style="padding-top:3px;">
<a4j:commandLink id="add#{activity.activityOrderTitle}"
oncomplete="Richfaces.showModalPanel('wf_organizationTree');" actionListener="#{createFlow.setOrgType}"
reRender="#{activity.activityOrderTitle},createForm">
<h:graphicImage url="../../resources/images/common/add.png" style="border:0px;" />
<f:setPropertyActionListener value="#{activity}" target="#{createFlow.currentActivityPerformer}" />
</a4j:commandLink>
<rich:toolTip for="add#{activity.activityOrderTitle}" value="#{msr.ID_WEB_WORKFLOW_PROCESS_ADDPROFORMER}" />
<h:commandLink actionListener="#{createFlow.deletePerformer}" id="delete#{activity.activityOrderTitle}"
reRender="#{activity.activityOrderTitle}" ajaxSingle="true">
<h:graphicImage url="../../resources/images/common/remove.png" style="border:0px;" />
<f:setPropertyActionListener value="#{activity}" target="#{createFlow.currentActivityPerformer}" />
</h:commandLink>
<rich:toolTip for="delete#{activity.activityOrderTitle}" value="#{msr.ID_WEB_WORKFLOW_PROCESS_DELETEPROFORMER}" />
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
</td>
</tr>
</table>
</rich:panel>
</c:forEach>
who can help me ,thank you