Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as and , that can be used to develop Visualforce pages. In addition, you can build your own custom ...

learn more… | top users | synonyms (1)

4
votes
1answer
27 views

Handle Multiple <apex:form> elements in one Visualforce page

I have a visualforce page with an apex:component in it. (This component is for headers, used in various other places). <apex:page title="" ... > <apex:form> <c: HeaderV2 /> ...
1
vote
1answer
15 views

Using component to list rows from related object

I have created a visualforce email template and I would like to display rows from a related object ORC__c which belongs to the Account object. The email template would be selected like so Contacts > ...
0
votes
1answer
44 views

Insert records from a CSV file to saleforce object- Using Visualforce and apex

For example: I have cvs file with account object records . if i uploaded cvs file (in vf page need to create attachment button which takes cvs file and need to create uploadFile button which stores ...
1
vote
1answer
20 views

Listing related data in custom email template via component

I am creating an email template which will be sent to individual contacts, the template needs to list rows from a related object. I have created the relevant component and class which I believe would ...
0
votes
2answers
17 views

Dynamic Visualforce Components with commandButtons tied to records

I'm creating a VisualForce page that is going to load records from a web service using JSON. I have a requirement to add a button next to each record I pull. I don't see a direct way to do this with ...
0
votes
0answers
16 views

jquery accordion with salesforce not working properly

<apex:page > <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script> <style type='text/css'> .accordion{margin:50px}.accordion dd ...
0
votes
3answers
19 views

Dynamic Hide and Show

I have the following piece of code where I want to dynamically hide or show div tag having a component on click of a button.. How can we achieve this? <apex:page sidebar="false" title="Article ...
2
votes
2answers
28 views

apex:selectList with free-form Other field

What is the best way to implement an apex:selectList add-on or equivalent, so that when the user selects "Other" a free-form text field appears to allow the user to enter any value (s)he wants?
3
votes
1answer
18 views

Custom attribute for Visualforce component that accepts SObject fields?

Is it possible to create a custom Visualforce component that accepts an SObject field as an attribute? Basically, I want to replicate what's done with something like ... <apex:inputText ...
0
votes
1answer
47 views

Visual force table display

I have created table using tag , In that table Column Header values are coming dynamically from Apex class as List. while displaying it on vf page I am using tag to populate the values of Column ...
0
votes
0answers
22 views

Display Converted Currency on Visualforce page inDeveloper Edition

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the ...
0
votes
0answers
15 views

Set sObject in component and update in master page

I have a problem, struggling from few hours and feeling lost right now. I have a custom component (AddressComponent.component) with it's own controller (AddressComponentController.cls). The component ...
1
vote
0answers
27 views

Component does not allow to save the object as it reset to old value?

The page shows the fields of the SObject with their expected values. I can modify these values on the page but when I press the Save button the SObject saved doesn't have any of the changes and I ...
-2
votes
2answers
23 views

I want to edit single record from multiple records [closed]

Hi this is mouli and i am new for visualforce, i want to edit a single record from multiple records available in a visualforce page i tryed but when click on edit button it is enabling all the ...
1
vote
1answer
40 views

Display Radio buttons group in visualforce page

I have two objects Question__c and Answer__c. For every question record there will be 4 answer records. I need to have 4 answers as radio buttons for every question. How to display the answers as ...
0
votes
0answers
31 views

VF : Remove gap between fields

The above picture contains my VF component. I would like to remove the gap between "Conversion Page Destination URL" & the two input fields (picklist , text area) so that they are in the same ...
2
votes
2answers
37 views

Hide Visualforce component based on field in account layout

On my account layout, one of the sections has a visualforce component in there that will only appear if another field on the account layout has a value in it. When there is no value it displays a HTTP ...
4
votes
1answer
34 views

Deleting a managed visualforce page

I'm trying to delete a visualforce page that is contained in a managed package. I have opened a case with the Salesforce support team and they enabled deletion of components that are contained in a ...
4
votes
1answer
44 views

Assigning VF component attribute to a List controller class variable

I have a VF page using a standard controller, a component, and a custom controller for the component. I am trying to pass a list of sObjects from the standard controller to the component's custom ...
0
votes
0answers
36 views

Can Visualforce components run in the Service Console?

I have a Visualforce page for Cases that contains Visualforce components that retrieve retrieve data/perform calculations that are useful during Case processing. When I include the Visualforce page ...
3
votes
0answers
21 views

How to add a component visible on all pages and to send events from another component placed in column

I'm extremely new to Salesforce development and recently have spend hours reading different docs. It's not an excuse, it's just that feel to correct me whenever I use incorrect terminology or make ...
4
votes
2answers
160 views

Rendering a Visualforce page as PDF and force page breaks

I have to skip the content of vf page (renderAs=pdf) to the next page whenever page body found <<next page>>. Below is my requirement: - The first(left) page should be split in two pages ...
1
vote
0answers
59 views

inlineEdit Cancel button suppose to work this way?

So I am try this sample directly from the developer guide, and if you were do an inline edit of the last name field, for example, and want to revert back to the original data by hitting cancel it ...
0
votes
0answers
27 views

How can I pass a variable from one component to another component via a page?

I have two components and one page, I have to pass a variable from one component to another component how to do this in salesforce. I created components CPSearchComponent, CPSearchResultsComponent ...
0
votes
1answer
52 views

Can't create attribute with type 'object' in custom VF component

I have a problem regarding tying an attribute in a visualforce component to a Controller. THe thing is, i needed some new functionality so i created new controller PaginatorController2. Ther, i have a ...
3
votes
0answers
48 views

Sorting the Opportunity Line Item Products into Categories?

I am having an Invoice Layout and adding the Products as follows using the Visual Force page: Quantity, Product Code, Product Description, Unit Price ,Net Amount, VAT 1, S5KGC, 5Kg CO2 ...
1
vote
1answer
44 views

Problem with apex:inlineEditSupport showOnEdit/hideOnEdit where multiple sets of buttons

I have an apex:component that renders several buttons and a table where one of the columns of the table uses apex:inlineEditSupport to allow inline editing. I am also using the feature that allows the ...
0
votes
0answers
19 views

Lookup editable only in edit mode [duplicate]

I created a custom lookup field, but when I add the visualforce page (the lookup) to my object page, he stays editable in the details page. I want he stays read only at details page and editable on ...
1
vote
0answers
29 views

Show Chatter feeds related to a Knowledge Article on Salesforce Community

I'm trying to show the chatter feeds related to the knowledge article using chatter:feed component on visualforce page. I'm able to show the feeds successfully to all the internal users but it gives ...
2
votes
0answers
16 views

Dependent picklists in components conflicting with each other

Imagine an object called Location that has a Country, State, and City dependent picklists. You select a Country then the States are populated, you select a state then the Cities are populated. Now ...
0
votes
1answer
61 views

Displaying custom field description on VF page

I have a requirement where the names of the custom fields far exceed the 40 characters limit. So instead I thought I would put a keyword in the field name and the whole name in the description of the ...
1
vote
1answer
24 views

How to avoid red line through https:// OR display external webpage as landing page in customer community

We are building a customer community and I'm having trouble with the home page. Currently I'm using a VisualForce page with an iframe to display a welcome page that our marketing team built in ...
0
votes
0answers
37 views

Refreshing whole pageblock section

I have one problem, when i clicked hide section button , it's hiding. whenever i clicked command link (Add chiller) ..............the pageblock section also refreshed its showing the table. its ...
1
vote
1answer
80 views

Use apex:relatedlist in visual force component

This is my VF page "TestPage": <apex:page standardController="Account"> <c:TestComponent recordId="{!account}" /> </apex:page> Visual Force component "Test Component": ...
1
vote
1answer
82 views

Reference child class in Visualforce component

I'm trying to build a VF component that references an attribute that is an instance of a child class. I have a top level class A and inner class B and C which extend class A and i am trying to pass ...
0
votes
1answer
24 views

Currency field to words

I got this apex code for converting numbers to word but want to display this in VF using standard controller and extension. public class NumberToWord1 { public ...
2
votes
1answer
223 views

How does one test Visualforce components with custom controllers

I have created a custom Visualforce component. It is backed by a custom controller. I am struggling to write unit tests for it. The limited VisualForce documentation indicates that to test it I ...
0
votes
0answers
46 views

create a page to display all the account records and their total contacts and total opportunities

can you please tell me how to get contacts records by click on total contacts as shown above fig. and also their detail page.
4
votes
1answer
54 views

Custom component controller is not re-instantiated by a rerender?

If I have a custom component contained within an outputPanel, and I rerender the outputPanel, does Salesforce re-instantiate the component controller and reload its data? It looks like it doesn't. ...
4
votes
1answer
123 views

Dynamically load a custom component in Visualforce page

I have a custom component called MyComponent that I could add to my visualforce page by using <c:MyComponent />. This is done in a static manner i.e. I need to have it in my visualforce page ...
0
votes
0answers
31 views

Call different visualforce component on button click

I have three picklists on a visualforce component -Picklist A,Picklist B , Picklist C with values yes/no .Now I have three different visualforce components by the same name ,,. I have to call the ...
1
vote
1answer
22 views

How can I adjust the output of an article using PKB

I am building a site using the PKB package, and need to adjust the output markup of articles. Currently this markup is all built with tables, but after searching through every class, component, and ...
0
votes
1answer
62 views

How do I get a components attribute on my page and set it to a page property

I have an apex:Component and I want to get its attributes value in the page <apex:component id="Job_Applicant_Details" controller="Job_Applicant_DetailsController"> <apex:attribute ...
1
vote
4answers
109 views

Is it possible to get the Id of a record in an component without using extension for the parent VF page?

I have a visualforce component with a controller. This component is used in a VF page with a standard controller. This Vf would be an inline page in different objects making it reusable. How should I ...
3
votes
1answer
105 views

How do I tell a controller which component is calling it?

I have a number of components that all share the same controller but have slightly different layouts. Everything's working great but for part of it to work in trying to find a way to tell the ...
0
votes
0answers
71 views

Render Visualforce pageblock one after the other

I have a visualforce page which has multiple components and pageBlock seciton. Page looks something like this <apex:page controller="MyController" sidebar="false"> <apex:form > ...
4
votes
4answers
229 views

What happens if apex:facet name=“start” or apex:facet name=“stop”?

I am very much confused of using apex:facet component in my visualforce development when I came across a code snippet as follows. The value for the name attribute is given as "start" and "stop". Does ...
0
votes
0answers
74 views

Customising the PKB article output

I'm new to Visualforce and have been tasked with branding the customer-facing Public Knowledge Base. Part 1: I have removed the base CSS from the main template, and added my own styling, which ...
2
votes
2answers
47 views

Dynamic components on a Visualforce page

I want to create a VF page inside which I will have component, which must be dynamic. As in, the user will have the flexibility to change the component without touching the code. I tried using labels ...
2
votes
1answer
24 views

Unmanaged component in Managed Email template

I'm having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this: ...