• Sandromeda
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
My VF page is divided into two sections: 

Top section has a text box and a command button (Submit) that takes in an employee id and populates a page block table with devices issued to the employee. 

Bottom section has a page block table where you input new serial numbers and update the employee by issuing new devices to them upon clicking the save button. 

When I click the save button in the botton section, the code executes perfectly in the back end. But the page refreshes after save. However, the table in the top section does not rerender to show the new devices. I have to click on the Submit button again for it to repopulate with the new data. 

Is there any way I can refresh the first table as soon as the page is reloaded after Save? 
My VF page is divided into two sections: 

Top section has a text box and a command button (Submit) that takes in an employee id and populates a page block table with devices issued to the employee. 

Bottom section has a page block table where you input new serial numbers and update the employee by issuing new devices to them upon clicking the save button. 

When I click the save button in the botton section, the code executes perfectly in the back end. But the page refreshes after save. However, the table in the top section does not rerender to show the new devices. I have to click on the Submit button again for it to repopulate with the new data. 

Is there any way I can refresh the first table as soon as the page is reloaded after Save? 
Hi friends,
I am having an issue with inputcheckbox/commandlink when rendering.
Below is my page code.

<apex:dataTable value="{!VenueList}" var="v" rowClasses="even,odd" cellpadding="5" styleClass="table_vl" id="table_List"  rendered="{!VenueList.size > 0}">
         <!-- Action Checkbox -->
         <apex:column headerValue="REFER">
    <apex:outputPanel id="recomendationNotcreated" rendered="{!IF((v.rec==null), 'true', 'false')}">
           <apex:inputCheckbox value="{!v.isSelected}" id="referLabel" styleClass="referLabel" style="margin-left: 15px;" rendered="{!IF((v.noOfServiceProviders == 1), 'true','false')}">
            <apex:actionSupport event="onclick" action="{!createRecomendation}" rerender="headerComponent,table_List" status="RecomendingStatus">
      <apex:param name="vid" value="{!v.VenueDB.id}" assignTo="{!venueRefId}"/>
                  <apex:param name="venueRefd" value="{!v.vpi.id}" assignTo="{!venuePricingInfoRefId}"/>
                  <apex:param name="locationRefd" value="{!v.vpi.MD_Locations_Serviced__c}" assignTo="{!locationServicedRefId}"/>
     </apex:actionSupport>
     </apex:inputCheckbox>
    </apex:outputPanel>
     <apex:actionStatus id="RecomendingStatus">
     <apex:facet name="start">
         <!-- <div class="vd-processing">&nbsp;&nbsp;<apex:outputLabel value="Processing..." for="referLabel"/></div> -->
         <div class="loading_Text"></div>
      <div class="innerBlock_Text">
             <img  src="{!URLFOR($Resource.VenueSearch,'images/130.gif')}" width="16px" height="16px" title="Please Wait..." />
         </div>
        </apex:facet>
    </apex:actionStatus>
   <apex:outputPanel id="recomendationcreated" rendered="{!IF((v.rec!=null), 'true', 'false')}">
           <apex:commandLink styleClass="clearRefer Remove" value="Remove" action="{!updateRecomendation}" rerender="headerComponent,table_List" status="loadingStatus" >
                  <apex:param name="dvid" value="{!v.vpi.id}" assignTo="{!venuePricingInfoRefId}"/>
                  <apex:param name="recommendId" value="{!v.rec.Id}" assignTo="{!recomendUpdateId}"/>
                  <apex:param name="vid" value="{!v.VenueDB.id}" assignTo="{!venueRefId}"/>
              </apex:commandLink>
           </apex:outputPanel>
              <apex:actionStatus id="loadingStatus">
               <apex:facet name="start">
               <!-- <div class="vd-place">&nbsp;&nbsp;Please wait...</div> -->
                 <div class="loading-Txt"></div>
                 <div class="innerBlocktxt">
                  <img  src="{!URLFOR($Resource.VenueSearch,'images/130.gif')}" width="16px" height="16px" title="Please Wait..." />
                 </div>
              </apex:facet>
              </apex:actionStatus>
        </apex:column>
</apex:datatable>

Here I am rendering commandlink when I click on checkbox and when I click on command link I am rendering checkbox. Here it is working only when the page get refreshed manually. I need to render those without loading the page. Please post your comments if I have made any mistake in the page...