Skip to content

Instantly share code, notes, and snippets.

@gitmatheus
Created June 27, 2017 13:35
Show Gist options
  • Save gitmatheus/b448583a1fb0e864d8d187e57e88bcff to your computer and use it in GitHub Desktop.
Save gitmatheus/b448583a1fb0e864d8d187e57e88bcff to your computer and use it in GitHub Desktop.
<apex:component controller="ChildComponentController">
<apex:attribute name="componentValue" description="Attribute on the component."
type="String" required="required" assignTo="{!controllerValue}"/>
<apex:pageBlock title="My Child Custom Component">
<p>
<code>componentValue</code> is "{!componentValue}"
<br/>
<code>controllerValue</code> is "{!controllerValue}"
</p>
</apex:pageBlock>
<p>
Notice that the controllerValue has been lower cased using an Apex method.
</p>
<!--
<p>
Calling Parent Component:
</p>
<c:ParentComponent componentValue="Hi there, {!$User.FirstName}"/>
-->
</apex:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment