You need to sign in to do that
Don't have an account?

How to access child vf component's data from parent vf component
I have an input form in a child vf component whose fields are rendered from a field set.
This child component is being called from a parent component where I want to validate on the parent controller whether the the required fields in child component's field set is filled or not before saving it.
So to do this I will need to access child component's data from a parent vf component's controller. But I am not sure how to access it.
This child component is being called from a parent component where I want to validate on the parent controller whether the the required fields in child component's field set is filled or not before saving it.
So to do this I will need to access child component's data from a parent vf component's controller. But I am not sure how to access it.
Is the controller same for both Child and Parent components? If they are same you will be able to access all variables from both components.
If they are different, then in that case you may need to create attributes on the components and set them such that they can communicate.
Refer the below link :
https://developer.salesforce.com/page/Controller_Component_Communication
Thanks