You need to sign in to do that
Don't have an account?
How to pass parameters from a VF page template to component controller?
Hi. I'd like to pass parameter information into a apex:insert element. I've mocked up sort of what I'd like to do - which is to create a apex:parameter (something that in reality doesn't exist) and to populate that parameter from the actual page using a apex:property element (which doesn't exist in reality). What I'd like to do is avoid creating mock_portlet1, mock_portlet2 etc. Thanks.
Template:
<apex:page controller="mockPortletController">
<apex:messages />
<table><tr><td>
<apex:insert name="mock_portlet" >
<apex:param key="columnNo" />
<apex:insert>
</td><td>
<apex:insert name="mock_portlet" >
<apex:param key="columnNo" />
<apex:insert>
</td></tr></table>
<apex:page>
Page:
<apex:page controller="selectAllPortletDataController">
<apex:composition template="myFormComposition">
<apex:define name="mock_portlet">
<apex:property key="columnNo" value="1"/>
</apex:define>
<apex:define name="mock_portlet">
<apex:property key="columnNo" value="2"/>
</apex:define>
</apex:composition>
</apex:page>
Maybe you can use a VF-Component and pass the parameter via that.
VF-component 'cmpName':
In your page you include your component like this:
HTH / Niklas
All Answers
for this you need to reltedTo attribute.
for more information visit
http://www.salesforce.com/us/developer/docs/pages/Content/pages_email_templates_with_apex.htm
Uh? relatedTo is an attribute of messaging:emailTemplate.
My question is about visual force templates.
Maybe you can use a VF-Component and pass the parameter via that.
VF-component 'cmpName':
In your page you include your component like this:
HTH / Niklas