I am unable to pass date values to constructor :Attempt to deference null object: Vf page:
<apex:pageBlockSectionItem >
<apex:outputLabel value="From Date" />
<apex:actionRegion >
**<apex:inputField value="{!opp.From_Date__c}">**
<apex:actionSupport event="onchange"
reRender="ajax" />
</apex:inputField>
</apex:actionRegion>
</apex:pageBlockSectionItem>
Controller:
public Opportunity opp{get;set;}//property
public controller_VfProdPage(ApexPages.StandardController controller)
{
opp = new Opportunity();
startMonth = opp.From_Date__c.month();
numMonth= new list<integer>();
Integer monthBtwn = opp.From_Date__c.monthsBetween(opp.To_Date__c);
}
ajax
? Do you reference {!opp.from_date__c}` within id=ajax
?