I am hereby sharing some very important VisualForce Tags that are required for creating VisualForce pages :
- <apex:page> </apex:page> : Created parent layout (Page Layout)
- <apex:pageBlock></apex:pageBlock> : Create inner layout, a type of div with header and can add text below that.
- <apex:dataTable> </apex:dataTable> : Grid Table to show contents in row column basis
- <apex:enhancedList> </apex:enhancedList> : New and enhanced form of Grid Table Layout with Selecting rows, paging with alphabet, Ascending/Descending sorting etc.
- <apex:form> </apex:form> : creates a layout to add form components which includes inputField , outputField, buttons.
- <apex:outputField> </apex:outputField> : component to show some text/message on the UI
- <apex:inputField> </apex:inputField> : component to take input from user.
- <apex:pageBlockTable> </apex:pageBlockTable> : Creates HTML tables to show data (Grid Table) . This creates on runtime, just have to pass the arraylist and it iterates and create grid
- <apex:column> </apex:column> : definition of each column in pageBlockTable with header Text
- <apex:pageBlockButton> </apex:pageBlockButton> : A div to add buttons in
- <apex:commandButton> </apex:commandButton> : A button with which we can create some action
- <apex:message> </apex:message > : A div to show error/success messages
- <apex:selectList> </apex:selectList> : pickList to select single/multiple records from a list of records
- <apex:actionPollar> </apex:actionPollar> : to call a function at a particular interval
- <apex:detail/> : This will show complete detail of particular record of system objects. With the help of detail tag we can detail of particular record (Complete or particular fields) and also this provides inline edit.
- <apex:tabPanel> </apex:tabPanel> : a panel or a div in which we can add tab for tabbing system to be enabled in our window
- <apex:tab> </apex:tab> : Represent each tab which comes under tab panel and in tab we can define out layout as per our need.
- <apex:selectRadio> </apex:selectRadio> : Creates a div for radio group. In this radio group you can add multiple select options and each select option will work as radio button.
- <apex:selectOption> </apex:selectoption> : This creates a option for radio buttons, picklist, checkboxes
- <apex:selectCheckboxes> </apex:checkboxes> : This creates a checkbox button
- <apex:pageBlockSection> </apex:pageBlockSection> : This will create a section with a title and expandable button
- <apex:actionSupport> </apex:actionSupport> : This provides functionality to add action on an input field, output field, label etc. This comes under open and close tag of any field for which we want to provide action support.
- <apex:inlineEditSupport /> : This provide feature to edit by clicking or focusing (depending on the condition) on the output field.
- <apex:outputLink> </apex:outputLink> : This creates a text field with link to open a website/page.
- <apex:param/> : This provides support to pass extra params with the outputLink url. This works as inline of output link.
- <apex:actionStatus> </apex:actionStatus> : This shows a message when a request is processing
- <apex:facet> </apex:facet> : This shows a message when request processing is completed.
- <apex:outputPanel> </apex:outputPanel> : This gives a div in which we can add components to show data in. We can add direct text, html tags, output fields, dynamic binding variables etc
- <apex:image> </apex:image> : This use to view image /picture
- <apex:includeScript> </apex:includeScript>: This is used to embed javascript in the page from a resource link.
- <apex:variable> </apex:variable> : This creates instance of a variable/object present in our apex code class. And we can that variable name anywhere in code.
- <apex:styleSheet /> : Used to embed style sheet in the apex page. This sheet can be from the static resource directory.
- <apex:repeat> </apex:repeat> : This tag will work as for loop and will iterate till the length of array passed.
- <apex:dynamicComponent> </apex:dynamicComponent> : This allow user to create dynamic component at runtime. We have to pass the reference of method that returns an instance of component this is to be create at runtime.
Leave a Reply