You need to sign in to do that
Don't have an account?

apex:inputText integert null to 0
Hi gays
I have apex class
When I try to set "null" (empty) in apex:inputText, I get value "0" instead of "null". How set "null" value ?
I have apex class
public class inputIntegerCtrl { public Integer intValue { get; set; } ...... }and visual page
<apex:page controller="inputIntegerCtrl"> <apex:inputText label="value" value="{!intValue}" /> ... </apex:page>
When I try to set "null" (empty) in apex:inputText, I get value "0" instead of "null". How set "null" value ?
Can you explain in detail about what are you trying to do ,because i tried the same code in my org .I am able to get input text box with empty value in it.
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards