I faced an issue with <apex:inputText>
while using disabled attribute with it.
The scenario is i can disable and enable the <apex:inputText>
using a checkbox.
<apex:inputText>
is binded with an Integer variable.
But when i enable the
<apex:inputText>
i get error : element value must resolve to a String type!
I tried these workarounds given in this post apex:inputText disabled binding causing "element value must resolve to a String type!"
But the above workarounds changes the appearance , the goal is not achievable.
When i tried binding <apex:inputText>
with String , the functionality worked fine , however now i have to make use of Integer.valueOf(myStringVariable) everywhere i need to do calculations in my code.
I just want to know the reason behind this error element value must resolve to a String type!
Why this doesn't work with integer value.