What is a requirement for a class to be used as a custom visualforce - ProProfs Discuss
Advertisement

What is a requirement for a class to be used as a custom visualforce controller?

This question is part of Platform Dev I
Asked by Csouza, Last updated: May 13, 2020

+ Answer
Request
Question menu
Vote up Vote down

4 Answers

yesi_2831

yesi_

yesi_2831
Yesi_

Answered Oct 11, 2018

Any top-level Apex class that has a default, no-argument constructor

A custom controller is an Apex class that uses the default, no-argument constructor for the outer, top-level class. You cannot create a custom controller constructor that includes parameters.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm

upvote 3 downvote
Reply 

Nate

Nate

Nate
Nate

Answered Oct 12, 2018

Any top-level Apex class that has a default, no-argument constructor

upvote 2 downvote
Reply 

ouarti.ayoub.1

ouarti.ayoub.

ouarti.ayoub.1
Ouarti.ayoub.

Answered May 13, 2020

Any top-level Apex class that implements the controller interface

upvote downvote
Reply 

csouza718

csouza

csouza718
Csouza

Answered Sep 20, 2018

Any top-level Apex class that implements the controller interface
upvote downvote 1
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.