function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

updating redender , and retive values not working properly




i pass javascript  function  to actionfunction




in action function


<apex:actionFunction name="updateChatterGroup" action="{!updateChatterGroup}" reRender="groupRefresh">
<apex:param name="values" value=""/>
<apex:param name="Pid" value="" />



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>




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

ForceMantis (Amit Jain)ForceMantis (Amit Jain)
I don't see any problem in code, Here is what you can try:
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?