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
srilakshmib87srilakshmib87 

Update the table Contents using Partial page update concept

Hi..,

 

I have VF page which contains dropdown ,an execute button and Refresh button and a table.Upon selecting a value in the dropdown and click on execute button,at the back end a method will execute and update a value custom object field.

 

Upon Clicking the Refresh button i want to display the update value in the table of VF page.I am able to update the table but whole page is getting loaded.

 

I want to refresh only the table componenet part not the dropdown when i click refresh button.

 

Can anyone please help me acheive this.

 

Thanks,

Srilakshmi B

Best Answer chosen by Admin (Salesforce Developers) 
timainmantimainman

Srilakshmi-

 

I wrote a quick blog post to answer your question. Hope it helps!

 

http://timinman.blogspot.com/2010/08/community-question-response-partial.html

 

 

All Answers

bob_buzzardbob_buzzard

You can do this by wrapping the components you wish to refresh in an outputPanel component, then change the commandButton component to include a rerender attribute.

 

The VisualForce Developer's Guide has a section entitled "Implementing Partial Page Updates with Command Links and Buttons" which covers exactly what you are trying to achieve.

timainmantimainman

Srilakshmi-

 

I wrote a quick blog post to answer your question. Hope it helps!

 

http://timinman.blogspot.com/2010/08/community-question-response-partial.html

 

 

This was selected as the best answer