You need to sign in to do that
Don't have an account?
Nitish Singh 22
apex:inputText value not accessible in Controller
I am passing Contact Name to my component via Apex:attribute
E.g:
If initial value of 'ct_displayValue' was "ABC"
user changes it to "XYZ" and hits action button, in controller i get "ABC", where i am expecting "XYZ".
Note: I already have Getter and setter for 'ct_displayValue'
<apex:attribute name="selectedContactName" description="Contact selected" type="String"assignTo="{!ct_displayValue}"/>which i am assigning to a text field in the component
<apex:inputText styleClass="box" value="{!ct_displayValue}" />But if User changes the Contact name in the above text field (i.e ct_displayValue). Still my controller reflects the initial value.
E.g:
If initial value of 'ct_displayValue' was "ABC"
user changes it to "XYZ" and hits action button, in controller i get "ABC", where i am expecting "XYZ".
Note: I already have Getter and setter for 'ct_displayValue'