Skip to main content
Sunny Bhatla (Citbank) 님이 #Visualforce에 질문했습니다
Hi All,

I was recently asked a ques: A page is using standard account controller. A new requirement needs to implement custom button with controller extension - which will call a webservice and display a new page.. what of the 3 attributes must be specified on <apex:page> :: standardcontroller,

renderAs,

extension,

readonly

action.

I know standardcontroller and extension will be needed .. what would be the third ?
답변 3개
  1. 2018년 12월 31일 오전 5:15
    Hi Sunny,

    1.RenderAs is used in standard controller when you want your vf in pfd format so

      for now, you don't need to use it in your page.

    2.Extension is required for this as you need to use the standard as well as custom

      controller for your vf page.

    3.The action is also required because it will be needed to invoke the method from your vf page.

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks and Regards,

    Deepali Kulshrestha
0/9000