+ Start a Discussion
jaanvivekjaanvivek 

<apex:outputText>, <apex:ouputField> and <apex:outputPanel>

Could you please brief me about <apex:outputText>, <apex:ouputField> and <apex:outputPanel>.

 

I have following queries.

 

1- When to use these individually.

 

2- How we can guess about the usage of these all.

 

 

If anyone can explain with realtime exmaple. It would be good for me to digest it.

 

 

Thanks for your all help and time.

 

 

Thanks,

JaanVivek

kiranmutturukiranmutturu

<apex:outputText> --> this will be used to bind the values to the UI either it is a standard filed or property value

 

use this when u want to customize with custom CSS and Displays text on a Visualforce page..

 

, <apex:ouputField>  --> this will be specifically used to bind the standard object fields only

 

this will be used when standard fields are going to be displayed in the UI

 

and <apex:outputPanel>  --> set of components to group in this component to render using AJAX requests

 

this component used to display componets as a group and we can refresh the data using AJAX reuests