How to use apex:param tag In Visualforce?

<apex:param> 

A parameter for the parent component. The < apex:param > component can only be a child of the following components:
  • < apex:actionFunction >
  • < apex:actionSupport >
  • < apex:commandButton >
  • < apex:commandLink >
  • < apex:outputLink >
  • < apex:outputText >
  • < flow:interview >
Within < apex:outputText >, there is support for the < apex:param > tag to match the syntax of the MessageFormat class in Java.

This tag supports following attributes:

Attribute

Description

assignTo
A setter method that assigns the value of this param to a variable in the associated Visualforce controller. If this attribute is used, getter and setter methods, or a property with get and set values, must be defined.
id
An identifier that allows the param component to be referenced by other components in the page.
name
The key for this parameter, for example, name="Location".
value
The data associated with this parameter, for example, value="San Francisco, CA". The value attribute must be set to a string, number, or boolean value. Note that value is the only required attribute for a param component because it is all that is needed when performing a string replacement. For example, if you use "My {0}" as the value of an outputText component and then include a param in the body of the outputText component, the value of the param tag replaces the {0} in the output text string.

Example:

<apex:page standardController="Contact">

     <apex:outputLink value="http://google.com/search">

         Search Google
 
        <apex:param name="q" value="{!contact.name}"/>
 
    </apex:outputLink>

 </apex:page>

vf_param

COMMENTS

Name

Apex Apex Default Methods Apex Methods Apex_Collections Apps Batch Apex Books CRM eBooks Data Import Wizard Data Management DataLoader Dataloader.io Difference Between Error in Salesforce FAQ's FAQ's-Apex FAQ's-Apps FAQ's-CRM FAQ's-Data loader FAQ's-SOQL & SOSL FAQ'S-Triggers FAQ's-User Profile & Security FAQ's-VF Force.com Explorer Force.com Ide Formulas & Functions Integration Interview Questions Only Latest_Updates Limits&Best Practices Online-Training Reports and Dashboards Salesforce Deployment Salesforce Realtime Examples On Development Salesforce Realtime Task On Admin Salesforce Realtime Tasks Salesforce Realtime Tasks- Apex Salesforce Training Salesforce1 Mobile Sites SOQL Spring'14 Release Triggers User Profile & Security VF Tags VisualForce Winter'14 Release Wizard for Accounts/Contacts Workbench Workflows and Approvals
false
ltr
item
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners: How to use apex:param tag In Visualforce?
How to use apex:param tag In Visualforce?
How to use apex:param tag In Visualforce?,apex:param,,salesforce visualforce param,param in salesforce,visualforce param tag,using param in visualforce page
http://1.bp.blogspot.com/-KVKSgaNMBxU/UfyilrXCIJI/AAAAAAAAAio/QEeBYlaDSN4/s1600/vf_param.JPG
http://1.bp.blogspot.com/-KVKSgaNMBxU/UfyilrXCIJI/AAAAAAAAAio/QEeBYlaDSN4/s72-c/vf_param.JPG
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners
http://sfdcgurukul.blogspot.in/2013/08/apexparam.html
http://sfdcgurukul.blogspot.in/
http://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/2013/08/apexparam.html
true
4199533888133360731
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy