I've used this reRender
functionality before and I cannot for the life of me see what's wrong with this basic code. Thanks in advance.
VF Page
<apex:pageBlock>
<apex:pageBlockButtons>
<apex:commandButton action="{!save}" value="Save" reRender="commissionForm"/>
<apex:commandButton action="{!showMessage}" value="Show" reRender="successMsg"/>
</apex:pageBlockButtons>
<apex:pageBlockSection id="successMsg" rendered="{!isSuccess}">
<apex:outputText>SUCCESS!</apex:outputText>
</apex:pageBlockSection>
</apex:pageBlock>
Controller
public Boolean isSuccess {get;set;}
public ClassificationTypeContactHandler(ApexPages.StandardController controller) {
Contact c = (Contact)controller.getRecord();
con = new Classification_Type_Contact__c(Contact__c = c.Id );
this.isSuccess=false;
}
public void showMessage(){
System.debug('show');
this.isSuccess= true;
}