You need to sign in to do that
Don't have an account?
updating redender , and retive values not working properly
Hi
i pass javascript function to actionfunction
updateChatterGroup(values,Pid);
in action function
<apex:actionFunction name="updateChatterGroup" action="{!updateChatterGroup}" reRender="groupRefresh">
<apex:param name="values" value=""/>
<apex:param name="Pid" value="" />
</apex:actionFunction>
updateChatterGroup - updates value
i rerender groupRefresh
<apex:outputPanel id="groupRefresh">
<apex:repeat value="{!myObj}" var="s">
<apex:outputPanel rendered="{!s.shared}"><option selected="selected" value="{!s.groupName}">{!s.groupName}</option></apex:outputPanel>
<apex:outputPanel rendered="{!NOT(s.shared)}"><option value="{!s.groupName}">{!s.groupName}</option> </apex:outputPanel>
</apex:outputPanel>
</apex:repeat>
after i update, i rerender the control and then get values from the object it shows previous value only .sometimes it works well. some time when i set value first ime it is not working and the second time it works well. I am totally confused . I am unable to figure out the problem itself
Check JS Error console to see if you are getting any error in chorme.
Attach an actionstatus with a spinner to see if is called and you know how much time it is taking to process, sometime we are hurry and actionfunction take time to complete.
At what event you are calling your update function?