I have a Vf page with rendering say
<apex:outputpanel rendered="{!payment.paytype__c==true}">
//My code goes here
</apex:outputpanel>
In my class
public list<paypolicy__c> payment{get;set;}
//constructor
payid = apexpages().currentpage.getparameters().get('id');
payment = [select paytype__c from paypolicy__c where id=:payid];
//save method
if(payid != null){
//some code
update payment;
}
if (payment.paytype__c==true) this condition becomes true then Update is not working....Help!!!!

<apex:pageblocksectionItem ><Apex:outputLabel value="Allow for Payments"/> <apex:outputpanel><apex:inputCheckbox value="{!payment.paytype__c}"> <apex:actionSupport event="onclick" rerender="SelectSection"/> </apex:inputcheckbox> </apex:outputpanel> </apex:pageblocksectionItem> </apex:pageblocksection> <apex:outputpanel id="SelectSection"><apex:outputpanel rendered="{!payment.paytype__c==true}"> //code here </apex:outputpanel>– Eagerin Sf Dec 14 '12 at 9:48