You need to sign in to do that
Don't have an account?
SKT CloudComputing
difference between commandButton and pageBlockButton
I want to know difference between commandButton and pageBlockButton for interview purpose.
Please suggest some important difference not the salesforce's definition.
Thanks You!
SKT
Please suggest some important difference not the salesforce's definition.
Thanks You!
SKT
commond button is used to execute actions which we write in controller.
pageblockbutton is set of buttons like save,cancel which looks like standard buttons.
Regards
Prad
Does it mean that pageblockbutton also calls the "save","cancel" in controller?
No, <apex:pageBlockButtons> is only another `block`, where you can hide your command buttons -> and then, they are automatically styled like standard buttons..as I wrote above..
It is only for styling.
Regards
Prad
These will not call constructor methods.
Did I get it correctly?
Regards
Prad
can you take a close look of below documentation
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_pageBlockButtons.htm
Let us know if you have any further questions on it.
Regards
Prad