You need to sign in to do that
Don't have an account?
sreeja
how to return a value in visualforce page with a nonvoid method..
//this is a nonvoid method
public decimal c1(){
taxvalue=223.44;
return taxvalue;
}
visualforce i had used the commandbutton to dispaly the value of tax value,it is throughing an error .. how can it display it...
<apex:form>
<apex:commandButton value="returntest" action="{!c1}" reRender="t"/>
{!taxvalue}
</apex:form>
public decimal c1(){
taxvalue=223.44;
return taxvalue;
}
visualforce i had used the commandbutton to dispaly the value of tax value,it is throughing an error .. how can it display it...
<apex:form>
<apex:commandButton value="returntest" action="{!c1}" reRender="t"/>
{!taxvalue}
</apex:form>
Greetings to you!
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.