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

delay in displaying part of the data in visualforce page


I  have a visualforce page in which I am rerendering the output panel based on a command link clicked.My issue is i get the question list with selectoption but the response takes time or sometimes some of the questions response show up in vf page.

So I think if I could find some way to call the function on click and than oncomplete rerender output panel than it should work.


vf code is

<apex:repeat value="{!sectionsStatusLists}" var="section">
<apex:commandButton reRender="questiondetail" value=" {!section.Section_Template__r.Section_label__c}" style="text-align:center;">
<apex:param name="sectionId" value="{!}"/>

<apex:outputPanel id="questiondetail" >
<apex:pageBlock id="block1">

<apex:repeat value="{!questionsList}" var="question" >
<apex:pageBlockSection columns="1" rendered="{!question.newquestFormat.Question_Type__c=='RadioPicklist'}" >
<apex:outputPanel rendered="{!NOT(ISNULL(question.newquestFormat.HelpText__c))}"><b>Q.{!qnum} {!question.newquestFormat.Question_Label__c}</b><span class="helpButton" id="help1_Help"><img src="/s.gif" alt="" class="helpIcon" title="{!question.newquestFormat.HelpText__c}"/></span>
<apex:outputPanel rendered="{!ISNULL(question.newquestFormat.HelpText__c)}"><b>Q.{!qnum} {!question.newquestFormat.Question_Label__c}</b>
<apex:pageBlockSectionItem >
<apex:selectRadio layout="pageDirection" id="qOptionList" value="{!question.resObj.Response__c}">
<apex:selectOptions value="{!question.optionsList}"/>



apex declaration code is this ,QuestionDisplay is the inner class

public List<QuestionDisplay> getquestionsList()

//get the section id from visualforce page using Apex.pageReference.getParameters

//create a select option list for the questions and the options for the questions

//get the response for the question



Thanks all