Created
June 27, 2017 13:31
-
-
Save gitmatheus/17d1f8ba99262c6dc73344686185b449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:component controller="ParentComponentController"> | |
<apex:attribute name="componentValue" description="Attribute on the component." | |
type="String" required="required" assignTo="{!controllerValue}"/> | |
<apex:pageBlock title="My Parent Custom Component"> | |
<p> | |
<code>componentValue</code> is "{!componentValue}" | |
<br/> | |
<code>controllerValue</code> is "{!controllerValue}" | |
</p> | |
</apex:pageBlock> | |
<p> | |
Notice that the controllerValue has been upper cased using an Apex method. | |
</p> | |
<p> | |
Calling Child Component: | |
</p> | |
<c:ChildComponent 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