You need to sign in to do that
Don't have an account?
Passing value from controller to its extension
Hi,
I have a custom controller ( with sharing class is used) and a visualforce page. I have some business logic in without sharing class.(i.e) I need some logic in with sharing class and some logic in without sharing class and both results are returned to the same visualforce page.
How to achieve this?
I tried with controller extension. But i face following problem
(i.e) i have a picklist in visualforce page and id is returned to with sharing class(custom controller). But i don know how to get that selected picklist id in the controller extension(without sharing class).
I also tried in creating inner class as without sharing inside outer class as with sharing. But i dont know how to access the methods in inner class and dont know how to return the value from inner class to visualforce page.
Please help me to resolve this issue.
Hi,
here is the example for Passing value from controller to its extension.
Visualfoorce Page:
Apex class: custom controller ( with sharing class is used)
Apex class: controller extension(without sharing class).
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thanks,
Hitesh Patel