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
bakul.patelbakul.patel 

component not assigning values to inputFields in controller

I have VF component which has certain input fields tied up with an object in controller variable as below:
<apex:outputLabel value="Field Name" for="fieldName"></apex:outputLabel>
<apex:inputField value="{!newField.Name}" id="fieldName"/> 
<apex:outputLabel value="Field Type" for="fieldType"></apex:outputLabel>
<apex:inputField value="{!newField.Type_of_Field__c}" id="fieldType">
<apex:actionSupport event="onchange" action="{!showValueField}" rerender="valuePanel"/>
</apex:inputField>
 
public Case_Dynamic_Field__c newField {get;set;}
After providing valule in newField.Name input field,  when I change selection in Type_of_Field__c, which is a picklist, it triggers a apex controller function call. In that function, I am debugging newField. There I am getting no values assigned to Name and Type_of_Field__c, while I was expecting values in both fields as provided in browser.

I have ensured that immediate is not used anywhere.
<apex:pageMessages/> does not render any message.
There is no actionRegion used