You need to sign in to do that
Don't have an account?
Francisco Rueda
Visualforce Field is Always Null in the Extension Class
Hi all,
I have the following code in a Visualforce page:
What am I missing?
I have the following code in a Visualforce page:
<apex:inputField value="!OPR.New_Monthly_Revenue_NA__c}" rendered="{!OPR.Type_of_Implementation__c=='Audio Only'|| OPR.Type_of_Implementation__c=='Audio / Web' || OPR.Type_of_Implementation__c=='ECC-Lync' || OPR.Type_of_Implementation__c=='ECC-ResPlus'}" required="true"/>Where OPR is an instance of an object in the extension class. And in that extension class, I have the following code:
OPR.New_Monthly_Revenue_APAC__c = OPR.New_Monthly_Revenue_APAC__c / oldRate * newRate;The problem I have is that, when executed that part (and I've verified that it's being executed), OPR.New_Monthly_Revenue_APAC__c is always null, even if I set a value in the inputField in the VF page.
What am I missing?
ARe you suing standard controller/custom controller.
Please send the total code of VF page and controller, so that i can help you
This is the apex:page part of it: That Opportunity_PM_Request__c object is the one instantiated with OPR. Any other operations against the controller work fine. I'm even doing the same assignation against another field (outputField, not inputField, just in case it matters) and it works:
The VF part in which it's been executed is: Do the rerender acts before or after executing the action? Maybe that's the problem.