I have a below apex function call
<apex:actionFunction name="searchContinueAvailableSlotJS" action="{!searchnextSevenSlots}" status="searchOpenSlots" onComplete="Appointment.onContinuationComplete()" rerender="confirmMsgPanel,nextSevenDaysId"/>
On Above call I rerender the components with id nextsevendays. Now this component has a apex:repeat which has a Map in it and that map gets updated on every apex function call. and I recurrsively calling the apex function 4 times like below from a javascript function
function1 () {
if(counter < 4){
searchContinueAvailableSlotJS();
}
}
Now this creates duplicate values on the UI as below. After first call say Map has value1 After second call map has value1 , value 2 so on UI it displays duplicate values Value 1 Value 1 Value 2 Value 1 Value 2 Value 3 ..... and so on. Can someone suggest a way to overcome this problem.Thanks