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
mikumiku 

I rerender the <apex:pageBlockButtons>the top button is rerendered but the bottom is not

The code is  like this When the claim.Checked_GP_Date__c have value I will rerender the Id btnApprove.but only the button on the top of block is actived.the bottom one is still grey.

 

 <apex:commandButton id="btnApprove" value="Approve" disabled="{!ISNULL(claim.Checked_GP_Date__c)}" action="{!saveApprovedClaim}" status="splashStatus" reRender="procedurePanel,errorPanel,pageBlk" onclick="setSubmit()"/>

 

any sugesstions?

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
mikumiku

I rerender the whole page instead the element.and the bug is fixed.Thanks for all the replies

All Answers

Shashikant SharmaShashikant Sharma

What have you given in PageBlockButton's location attribute. If you have given yop then please change it to "both" , or jus do not provide any thiing bydefault it is "both".

 

If it does not work for you please provide complete code.

Ankit AroraAnkit Arora

Have you written any JavaScript to disable the button?

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

mikumiku

I rerender the whole page instead the element.and the bug is fixed.Thanks for all the replies

This was selected as the best answer
ChizChiz

Thanks, man! Superb solution!