You need to sign in to do that
Don't have an account?
SkyBlue2007
How to use private Variables from Visualforce.
Hi all,
I'll try to use private Variables from Visualforce, but it doesn't work.
Here is VF.
<apex:page controller="TestController" action="{!tabTest}" sidebar="false"> <apex:iframe src="{!iframeUrl}" scrolling="true"/> </apex:page>
Here is Controller.
public class TestController { private String iframeUrl {get; set;} public PageReference tabTest() { iframeUrl = 'http://www.test12345.com'; return null; } }
Please let me know if you have any information.
Thanks,
SkyBlue2007
You can not use private variables on visualforce page. Variable should be public and should have get set defined, only after that you can use them on page.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
You can not use private variables on visualforce page. Variable should be public and should have get set defined, only after that you can use them on page.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Hi Ankit_Arora,
Thank you for your prompt reply.
I understood wha you said.
Thanks,
SkyBlue2007