public class DisplayAllFieldsClass {
public map<string,schema.sobjectfield> data {get;set;}
public DisplayAllFieldsClass (){
data = Schema.SObjectType.BISWAJEET__Student__c.fields.getMap();
}
}
Basically we used immediate="true" in CommandButton & CommandLink, when we don’t want our validation rules to be fired during any server request.
It is a Boolean value that specifies whether the action associated with this component should happen immediately, without processing any validation rules associated with the fields on the page. If set to true, the action happens immediately and validation rules are skipped. If not specified, this value defaults to false.
We generally use it to make functionality of “Cancel” button or “Back” button, where we don’t want validation rule to get executed. If we don’t use immediate=true then on click of cancel button also, validation rules will get executed.
Here is an example to highlight the selected row in a page block table in visualforce page. To do this add the below code snippet to your visualforce page to highlight the selected row color among the rest of the rows in same page block table.