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)

3
votes
0answers
16 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
18 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
16 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
19 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
19 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
21 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
33 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
23 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
20 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
50 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
17 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
103 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
62 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
30 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
38 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
29 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
47 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
72 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 ...
31
votes
1answer
691 views

End of javascript sidebar hacks?

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
51 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
42 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
64 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
30 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
336 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
84 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
116 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
65 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
163 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
32 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
84 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
185 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"> ...
0
votes
0answers
112 views

Creating a custom list-view button that handles multi-record selection and looks to a dependent picklist

I have a dependent picklist on a visualforce page that allows the user to select which action they want to execute on the records they have selected. After the click the button to update the records I ...
0
votes
1answer
65 views

Sending data to component controller “onload”

I am new to apex and salesforce, and I have a trouble. I have a component that I should use in the VF email template to show some text (parsed JSON data from google API). Here is the temptate's code ...
1
vote
1answer
57 views

Visualforce component use custom id attribute

Any apex visualforce component created with a custom id, results into an html component created with an id which is prefixed by the their parent's id. <apex:outputPanel layout="block" id="hello" ...
1
vote
1answer
104 views

Google chart API vs analytical report chart

I have created bar charts in salesforce using google chart api and they work fine. I have also created charts using reports and dash boards in salesforce. Displaying the charts in visualforce by using ...
1
vote
1answer
104 views

Script for hidding outputPanel when pageblock section is collapsed

Here is what I am trying to do. We have a table which as several rows and columns. This table is placed under a pageBlockSection which is collapsed when the page is loaded using a script. What I ...
2
votes
1answer
58 views

how to change the visual force page to look like the standard detail page section

I have created a visual force page and embedded in the accounts. But visualforce page looks different in the section when embedded (that is the background-color is gray and does not like the standard ...
0
votes
1answer
25 views

Update vf emailTemplate from a VF page?

is it possible to update a visualforce emailTemplate from via a Visualforce page? I have a user who is not admin, and user should be able to edit/update the visualforce email template. thanks a ton.
0
votes
1answer
113 views

Issue loading Visualforce page: all queries are executed twice, what i'm missing?

I am managing a visualforce page, which on loading run all the queries twice, both queries made from the controller of the page or from the custom components. I don't understand how this can happen. ...
3
votes
1answer
303 views

Jquery Modal Popup window in Salesforce is vanishing after it shows for 2 seconds

I have a button, onclick of that i want to display the modal pop up window. Here's what i have done- Window is displayed for 2 seconds and then it vanishes! what might be the problem? ...
0
votes
1answer
44 views

How to Group list of leads and contacts that have matching email domains

i am new on salesforce and trying to fetch out some data on my VF Page from lead and contacts in a date range. Now the problem i am getting is to group data between Contact and Lead. This is hwo i ...
1
vote
2answers
124 views

Error while using IF in inline Visual force page

I am using an inline IF expression for the value attribute of an <apex:column> inside an <apex:pageBlockTable>. The code is as follows: <apex:pageBlockTable var="mem" ...
1
vote
1answer
113 views

How can I hide fields in detailpage when saved in a Visualforce page?

When i save the record the % fields also showing in detail page. below is the page <apex:page standardController="opportunity"> <apex:includeScript value="{!$Resource.jquery}"/> ...
1
vote
2answers
493 views

How to display List<List<String>> in Visual force page?

In controler i will get the data as "List < List < String>>" , how can i display it on Visual force page? And that "List < List < String>>" is populated based on user input(Checkbox ...
1
vote
1answer
193 views

How to use html textarea compnent in visualforce page?

I am having a field, Final_Step__c which is of data type Text Area. I am showing it in VF page: but, due to maximum length issue of <apex:textarea> i wanted to use html <textarea> ...
1
vote
1answer
288 views

How to Create Custom Sidebar in Visual force page?

Is it possible to create custom sidebar in visual force page? I want to have a sidebar similar to the one we see in Setup page. Like this!. Is there a way to do this?
0
votes
0answers
139 views

Subscript is invalid because list is empty

i am showing up with following in the visual force error I am checking the list is null or not but still i am showing up the with error "Subscript is invalid because list is empty" below is my code ...
4
votes
1answer
581 views

reports embedded in visualforce not showing

I have a few reports embedded in visualforce page using iFrame. Due to this new release of Spring '14, iFrame has stopped working and now these visualforce pages show blank screens. Can anyone help me ...
0
votes
0answers
17 views

Apex component like HTML component <legend>

Does any Apex component exist like the <legend>My legend here : </legend> tag in HTML? I don't find any component like this on the Visual Force API.