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)

1
vote
2answers
24 views

Best Ways Of Customizing or Replacing Related List on Opportunity details page

On Opportunity, I've created a related object called Opportunity Item. On the details page for an opportunity, a related list was automatically added for Opportunity Items. I need to take complete ...
2
votes
1answer
26 views

Display VF custom components with user-defined order

We want to allow users to add/remove modules (custom components) from a VF page and set their order of display. We will use a dialog similar to the standard SF one (see image) on the front-end and ...
0
votes
2answers
36 views

Use Edit function in vf page

I have to use edit function in a vf page.Please find my apex class and corresponding error showing below. Apex class: global with sharing class poistionController1 { public ...
1
vote
1answer
18 views

Have you seen this line core.apexpages.el.adapters.AggregateResultELAdapter@?

I want to display in a VisualForce Page a map like this, Map<Integer, List<aggregateResult>>. But the map only shows "core.apexpages.el.adapters.AggregateResultELAdapter@3482c248". Does ...
1
vote
1answer
24 views

Seach Option in header. How to handle it?

This is the situation: I have 3 pages, Home/Search/Post I have a header and the search box is in that header which is component. Controller for that header component is SearchController. So first ...
3
votes
2answers
119 views

inputFile exceeds maximum viewstate limit

So I have a file uploader using inputFile component on my VF page. It works fine except when the page rerenders it now exceeds the maximum viewstate if a file is attached. This is a problem if the ...
2
votes
0answers
24 views

Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded

I have a Visual Force component inside a Visual Force Email Template with the intention of producing an HTML email in which the component is reponsible for rendering some of the HTML. What seems to be ...
2
votes
1answer
22 views

Custom Tab design in salesforce

Is it possible to have a custom look and feel for the tabs in salesforce? If I have to create a visualforce page, I just want to change the look and feel of the Tabs and pages but the functionality of ...
-3
votes
2answers
43 views

I want to display POP UP Window in VF

For example, I have 3 command buttons in same page block table, clicked 2nd command button , its needs to display "POP Button " , will we copy first command data to here ? YES or NO . like that I ...
0
votes
0answers
17 views

Graying out background breaking in Service Console

I am using a ajax component to gray out background on button click (on button click a function is invoked and on its completion the gray area disappears) This functionality is working as expected . ...
1
vote
2answers
27 views

How to create IF Statements in Visualforce email template?

Hi I have create the Visualforce email template and i have attach the pdf file,in that pdf file name has been Certificate .pdf, but the file name a particular parent name Eg: Mecca Bingo it will show ...
1
vote
2answers
62 views

How do i use different components on Visualforce?

I am trying to use a different components in a VF page.At present,the component is made only on Account object.The requirement is to make it for other standard objects like Contacts,Leads etc. Any ...
2
votes
2answers
84 views

Call a method in controller from Component (not in Constructor)-Visualforce

<apex:component> <apex:attribute name="l" description="l" type="double" assignTo="{!Received_L}"/> <apex:attribute name="varLng" description="t" type="double" ...
2
votes
1answer
47 views

Can't seem to use $ObjectType in a component

I found myself using a bit of code to display a searchable history of a given SObject, for a couple of different SObjects so I thought it sensible to create a component, that could be told the SObject ...
0
votes
0answers
12 views

Style pageblockSection or other collapsible component

I have the requirement to have a collapsible section in which there will be a bunch of iputs and data and also another smaller collapsible section (inside the main collapsible section). So right now I ...
0
votes
1answer
32 views

Split selectCheckBox into two columns?

I would like to use a selectCheckbox for a field but the design team wants the options to be in two columns like so opt 1 | opt 2 ------------- opt 3 | opt 4 ------------- opt 5 | Im sure I could ...
1
vote
1answer
38 views

Rerender/rendered interaction in Visualforce

I have a Visualforce component with three fields- a dropdown of fields on a Salesforce object, a dropdown of options which depends upon the fieldType, and an input field which should not appear for ...
0
votes
1answer
31 views

How to size a VisualForce component to use the available width within containing pageBlock

I'm a little bit stuck getting a custom VisualForce component sized. I've tried setting the width every way I can think of, but have seen no change. I'm almost certainly just missing something dumb. ...
4
votes
0answers
32 views

Recreate the Salesforce Multi-Picklist Element

Short question: How can I recreate the SelectFitlerElement or dual_select using Visualforce elements and javascript? Long question: I am trying to improve a Visualforce page that allows you to ...
0
votes
1answer
22 views

random <a> tags generated with outputLink through component

My component looks as such: <apex:component layout="none"> <ul class="chatter_links"> <li class="like"><apex:outputLink value="#"><span class="glyphicon ...
2
votes
1answer
27 views

Is it possible to use FieldSets as Visualforce Component attribute?

I get a strange error message stating: Compilation error: Wrong type for attribute <c:sobjecttable ...
1
vote
1answer
30 views

Why can I not left align a selectRadio

Im trying to put some stuff into a 2 column panelGrid and no matter what I do there is always unnecessary padding around a selectRadio. Any idea how to make it go away? The css I have applied is: ...
2
votes
0answers
35 views

Using apex class as attribute type for component - Summer '14 IDE issue

I have a component that gets an instance custom Apex Class as an attribute, ie: <apex:component controller="ComponentController"> <apex:attribute name="myAttr" assignTo="{!attr}" ...
0
votes
1answer
35 views

possible solution for “You cannot call addFields after you've already loaded the data” - error

I've seen this error and researched it and this is not happening because of a test. If you're getting this error because of some unit tests look at this Bob Buzzards Blog here My problem is ...
3
votes
1answer
41 views

How to improve loading speed of a layout based page that includes a Visualforce section?

So here is my problem. I've added a VisualForce page to an object as a section in the page layout. The VisualForce page contains the apex:details tag that points to another object. This means its ...
1
vote
1answer
27 views

Pass ID of nested component

So Im trying to use javascript in a Visualforce page to show/hide elements on click so I dont have to deal with selective rendering. To do this I have to pass the ID of the I want hidden/shown on ...
1
vote
1answer
27 views

display VF component based on variable value

We have a custom object called "Container" and each Container item is associated to a specific VF Component. On the Container record, you would select from a picklist the VF component it associates ...
0
votes
1answer
56 views

Visualforce - array in jQuery throws error

In order to show a list of values fading continuously, I queried the values in the controller and trying to iterate in a component using array in jQuery. But it throws an error "Unknown property ...
2
votes
1answer
21 views

Custom Component inside email template displaying error at top of page

I have an email template that contains a custom component with code: <messaging:emailTemplate subject="Your Recent Order" recipientType="Contact" relatedToType="Order"> ...
1
vote
2answers
177 views

Displaying Visualforce Datatable on Account object

First, I'm a complete noob and this is my first attempt at a Visual Force page. So, I've created a simple Datatable that lists out Tasks that are related to only a certain group of Contacts that are ...
-2
votes
2answers
86 views

Model in Model View Controller

I came across multiple choice for sample exam But was not sure whether Custom Component comes under Model in MVC ? Choose two Options were Custom Object Custom Component Apex Controller ...
1
vote
1answer
33 views

list grouping for display in VF page

I would like to be able to group a custom list that I have built with the help of an inner class. This list looks like the following array when I send it to json serialize json = ...
1
vote
1answer
80 views

Multiselect picklist in VF page missing chosen side

For some reason, my multiselect box has no 'Chosen' side: Here's my VF selectlist component: <apex:selectList value="{!selContact}" label="Contact Name" size="3" multiselect="true" ...
1
vote
0answers
40 views

“Unsupported type java.lang.Class” error when checking ApexPages.Action with ISNULL

I have a custom component which doesn't use a Custom Controller. On of the optional attribute is of Type ApexPages.Action. The component renders a command button only when this attribute was set. It ...
3
votes
0answers
59 views

Trigger a native change event from within a Visualforce component

I am using the following Visualforce multi-select picklist component (thanks @metadaddy!) and extending it to handle an 'onchange' attribute: ...
0
votes
1answer
116 views

jQuery datatable not functional on templated page

I have a visualforce page which makes use of a template. I am trying to use jquery datatable to add funtionality to the pageblocktable. My code works on just a normal non-templated visualforce page ...
44
votes
1answer
2k views

End of javascript sidebar workarounds?

Reading through this doc: http://docs.releasenotes.salesforce.com/en-gb/summer14/release-notes/rn_forcecom_home_page_components.htm We replaced the rich text editor in HTML Area home page ...
1
vote
1answer
66 views

Apex: details workaround for salesforce1

So I know that tag is not supported in salesforce1 and thats really inconvenient. I currently have a master-detail relationship object that I create a visualforce page for so that users on desktop ...
4
votes
1answer
52 views

Inline Visualforce API issue

I have asked this question of Salesforce support from my partner portal but they closed it without answering (which I am trying to deal with as a separate matter), but it is affecting my client's use ...
5
votes
2answers
85 views

apex:detail title bug?

I've looked everywhere and it seems like I'm the only one with the problem. I've created a visualforce page and use apex: detail to reference my object. Everything shows up fine but I don't want ...
1
vote
1answer
35 views

Custom VIsualForce Page Property

In layouts, there's settings for visualforce page when you click on the wrench icon to set width and height. Is there a way to add a custom property onto this wizard? Such adding a new checkbox ...
3
votes
2answers
900 views

how to pass value from visual force page (InputField) to controller?

I have created a Vf page from which i need to fetch the value of new owner and need to save the value in property defined in controller: Following is my vf page code: <apex:pageBlockSection> ...
3
votes
1answer
119 views

Ajax call on custom component: insufficient privileges

I wrote a VisualForce page that has two drop-down lists. When the user selects an item from the first list, it makes an Ajax call to populate the second list. Everything worked great. I split the ...
4
votes
1answer
222 views

force setting a picklist value to none on Visualforce Page

Any help with this issue is appreciated I have two fields on ticket (Ticket status - is a picklist field) and (closing codes - is a picklist field). If ticket status is set to closed closing codes ...
1
vote
1answer
107 views

Notes and Attachments on Communities VF Page

We have a VF Page that we are exposing to community users and on that page, we want to display the RL for Notes and Attachments. We have the following snippet <apex:relatedList ...
0
votes
1answer
483 views

Refresh page with command button rerender attribute set?

I have a visualforce page that calls a custom component. Both the VF page and the custom component have apex:pageMessages tags embedded in them. I put a wrapper class around the apex:pageMessages so ...
2
votes
2answers
28 views

Obtaining the page's obect Id from a component

I have a component that reads one of the parameters on a page to get the record information for an account. The problem is that the main page has some HTML DIV sections that act like dialog boxes. ...
0
votes
1answer
39 views

Create Javascript Button in VF Component

Is it possible to create a custom button (similar to onclick custom button on page layout) that invokes javascript ?
2
votes
1answer
113 views

Passing a javascript variable value to component attribute value

I have a VF custom component with attribute called chartHeight. I need to assign chartHeight a value from the VF page the component resides in, and this value should be screen.availHeight retrived ...
1
vote
1answer
356 views

how to pass values from Visualforce Email Template to custom component

I have created a simple visualforce email template: <messaging:emailTemplate subject="** Inventory Wishlist Match Found **" recipientType="User" relatedToType="Inventory_Wishlist__c"> ...