Thursday, December 8, 2016
Visualforce - Beyond Basics Series 7 - Controller polymorphism using init action
In many cases, you need to share the controller, extension between different pages/components. But, it wont be possible if the object is initialized with default set of values. So, you may need to initialize the object very differently for different cases.
I have a Class in Apex which will be shared among two pages. These pages will initialize the object differently. This is just a basic case, but, it could initialize or perform certain logic & make the object look entirely different.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Thanks for reading my blog !