People who code: we want your input. Take the Survey

Questions tagged [controller]

A controller is one piece in the Model-View-Controller (MVC) architecture of Visualforce. A controller can be a standard or custom controller and extensions to controllers can written.

Filter by
Sorted by
Tagged with
10
votes
2answers
3k views

Custom Controllers - effect of running in System mode

The VisualForce Developer's Guide says: Like other Apex classes, all custom controllers run in system mode. Consequently, the current user's credentials are not used to execute controller logic, ...
22
votes
2answers
57k views

how to get a picklist all values in apex controller

I have a Student object and have a pick list field "Student Status" in this object. Status can be Full-Time OR Part Time. Now my requirement is i want this student status list, Part-Time or Full-Time ...
4
votes
1answer
896 views

Generic Controller class?

I have a custom Visualforce extension which accesses information stored in custom settings and exposes it as variables which can be referenced from Visualforce. I'd like to be able to use this ...
38
votes
4answers
50k views

What is the Difference Between Controllers and Extensions?

Can any one explain the usage of controller and extensions in Visualforce? In which scenario we have to use controller and extensions?
4
votes
2answers
2k views

Code Caching Issue?

I have a sites page, and it seems to work fine from a functional perspective. It has a custom controller that retrieves some data from a custom object and the Contact object, displays the data to the ...
2
votes
2answers
247 views

How to get records name from another Page

Say suppose in Object1(Project) I have records.....Now my requirement is in a vf page I have to get the Object1(Project) names for a field.....For this I have Quered like this List<Object1__c>...
5
votes
2answers
838 views

Having trouble getting the KnowledgeArticleViewStat for the KnowledgeArticle

So I am trying to get the KnowledgeArticleViewStat for a specific KnowledgeArticle. I am using the KnowledgeArticleViewStat.ParentId to match it to the KnowledgeArticle.Id. This is my controller: ...
2
votes
2answers
9k views

How do I access a Map in my Visualforce page?

I have a custom controller that returns a map like this: Map<String, String> In my visualforce page, how do I access this map? Before the Winter '13 release, I could do this: <apex:...
3
votes
3answers
1k views

Test Visualforce Page With Over a Thousand Select Options

I have a custom visual force page which is throwing the error - I have found the line which causes the error and know how to fix, but just need to write a test class which will recreate the error ...
0
votes
3answers
1k views

Getting an error when trying to create a custom page with a custom controller

I am trying to create a custom Visualforce page with a custom controller by following the example on this page: http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm ...
4
votes
2answers
18k views

Multiple custom objects in a single VisualForce page

How would I go about using two custom objects (unrelated to each other) in a single VF page? Would I set the first object as a standard controller and use an extension controller for the second, or ...
4
votes
1answer
3k views

How can I use a standard set controller with ActivityHistory records?

I want to display a custom related list on my account detail page that mimics the standard Account History related list with a few enhancements. I want to enable pagination so I have defined a custom ...
4
votes
1answer
679 views

List controllers are not supported for Profile

Is there a workaround for "List controllers are not supported for Profile" error in visualforce page? Am creating a simple visualforce page to display the profiles in a data table with the pagination ...
6
votes
4answers
9k views

Error: Could not resolve the entity from <apex:inputField> value binding '{!variable}'

This seems like it should be very simple and I have no idea why it isn't working. I have a VF page with a controller. The controller has the following property (yes, I made sure to save): public ...

1
23 24 25 26
27