Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visualforce]

Visualforce relates to questions where the Visualforce language or framework are concerned. This is primarily VF pages, components, PDF rendering, and email templates. This would only cross-over to Lightning where Lightning Out (Lightning for VF) or VF pages using SLDS or being used in LEX. Where a question relates to Apex invoked as part of a VF page, this tag would also be appropriate.

5
votes
4answers
8k 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 ...
11
votes
6answers
2k views

HTML5 elements vanish when rerendering Visualforce

I have noticed that HTML 5 tags like <section> and <header> disappear from the page when I reRender the page. On initial load of the page the HTML5 elements appear as expected but when the ...
33
votes
2answers
21k views

Dynamic number of columns in a pageBlockTable

I would like to be able to dynamically control the columns displayed in a page block table. This would mean that if new fields are added to the object the controller and page do not have to be updated....
7
votes
5answers
12k views

How do we create a popup from VF page?

I have a VF page with couple of buttons. I need to show a popup when one of the buttons is clicked. Something like a modal popup where user has to fill in something or click the cancel button in the ...
3
votes
1answer
147 views

How can I reference a test Remote Access application while testing my managed package?

In my managed package I have included a Remote Access application that references my external web site to handle various integration tasks including: Product fulfillment requests/cancellations Client ...
14
votes
3answers
12k views

ID for Contact portion of Person Account

Is it possible to get the ID of a Contact which is part of a Person Account? I have a custom object which has a custom field referencing the Person Account, though it seems to be referencing the ...
6
votes
2answers
3k views

Access custom controller-defined enum in custom component?

Given a custom VF component that uses a custom controller; the controller defines an enum: global with sharing class My_Controller { public Case currCase {get; set; } public enum StatusValue {RED,...
7
votes
2answers
2k views

URL management / readable URLs in visual force

We are considering developing a new version of our website (where our customers can purchase and manage certain types of content) on the force.com platform. We have a business/usability requirement ...
25
votes
3answers
19k views

How should I build test methods for Visualforce Controller Extensions

I would like to know the best way to write test methods for controller extension classes that are used by Visualforce. What is the minimum set code that I need to cover the basic operation of the ...
3
votes
6answers
5k views

Visualforce to excel for more than 20K records

I need to export a VF page with contentType="application/vnd.ms-excel#Patents.xls" with a datatable fetching from a list with more than 20000 or 30000 records to an excel.. i changed the type to ...
10
votes
4answers
5k views

How much of the Salesforce User Interface can I customise?

I would like to change the colours and images used in salesforce to provide a completely custom user interface that will adhere to my corporate brand style guidelines. What are my options? How much ...
15
votes
5answers
5k views

Is it possible to use images in Visualforce generated PDFs which are not static resources?

I'm trying to generate a Visualforce PDF (renderAs) with a variety of images from different sources includes Salesforce Attachments and Documents, as well as third party sites. So far I've only been ...