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

how to reRender the pageBlockTable by apex command button on click event?


hi ,


how can i rerender the pageBlockTable by clicking on the command button?


any kind of help will be appriciated.........


thanks in advance



Chamil MadusankaChamil Madusanka

Yes you can. You can use following method to rerender a page block. It needs to give the pageblock id to rerender attribute in command button.


<apex:pageBlock id="UnitApprovalBlock">


<apex:commandButton value="Click Me" action="{!yourMethodName}" reRender="UnitApprovalBlock"/>

 If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.

Rohan SarafRohan Saraf
@Chamil Madusanka it dosent' work I tried a  lot.....
Any one could you please suggest anyother way