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
djfubardjfubar 

Retrieve component field from VF Page

Hi,

 

I have a component which consists of 2 inputf ields. What is the easiest way to retrieve the values enetred in these fields from the parent VF Page?

 

code example

//VF Page
<apex:page>
    <c:testcomponent/>
</apex:page>

//Component
<apex:component controller="testcontroller">
<apex:inputText value="{!input1}"/>
<apex:inputText value="{!input2}"/>
</apex:component> 

 

 

Thanks