Is there a way to pass values from a controller in a VF page down to a child component?
I need a way to do the following:
My page:
<apex:page controller="myCustomController">
<c:myComponent>
</c:myComponent>
</apex:page>
My component:
<apex:component>
<input value="{!myObj.value}" />
</apex:component>
Where "myObj" is a custom object in myCustomController
The problem is myComponent isn't able to read the values from myCustomController. Is there a way to do this without assigning the controller to the component as well? I ask because the page we're building uses multiple components that need to all reference that singular controller, and making them all one page is not an option.(We're using about ten custom components that display dynamically, but we don't want ten instances of the controller running if it can be avoided)
Thanks!