function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nitish Singh 22Nitish Singh 22 

apex:inputText value not accessible in Controller

I am passing Contact Name to my component via Apex:attribute  
<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'