| 1. |
Explain The Need Or Importance Of The Controller Extension.? |
|
Answer» Controller extension is very useful and important concept introduced by the salesforce recently. It gives the POWER to programmer to extend the functionality of existing custom controller or standard controller. A Visualforce can have a SINGLE Custom controller or standard controller but many controller extensions. We can say that the custom extension is the supporter of custom or standard controller. Consider ONE example: If there is one controller written and used by the multiple visualforce pages and one of them needs some EXTRA LOGIC. Then instead of writing that logic to controller class (Which is used by many visualforce pages) we can create a controller extension and apply to that page only. Controller extension is very useful and important concept introduced by the salesforce recently. It gives the power to programmer to extend the functionality of existing custom controller or standard controller. A Visualforce can have a single Custom controller or standard controller but many controller extensions. We can say that the custom extension is the supporter of custom or standard controller. Consider one example: If there is one controller written and used by the multiple visualforce pages and one of them needs some extra logic. Then instead of writing that logic to controller class (Which is used by many visualforce pages) we can create a controller extension and apply to that page only. |
|