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)

0
votes
0answers
26 views

passing data from Page controller to component Controller

I want to pass list of record from VF page controller to component controller but when i access variable in component controller using object creation then i am getting null value. I am taking Example ...
1
vote
1answer
44 views

Rerender page components from apex:component

I have a Visualforce component (apex:component) where I would like to trigger the rerendering of an apex component on the containing page. In this case the component to rerender is an ...
1
vote
1answer
42 views

<apex:pageBlockSectionItem> may have no more than 2 child components.

After doing some changes to the view by adding apex:pageblocksection and apex:pageblocksectionitem i am getting the error as given below. Am i doing anything wrong here? Any suggestions please. ...
0
votes
0answers
35 views

Custom component not blocking page within IE

I am using a custom component that blocks the page and displays a fancy processing icon/text when any actions occur on my visual force page. My problem is that it does not seem to work with Internet ...
1
vote
1answer
23 views

Getting value from component class in main class.?

I have shown some fields in my component page and i am using that component in my main page..I want to get the list value that i have used in my component class to my main controller class..I tried to ...
1
vote
1answer
24 views

I want to display clickedcellvalue name in my visualforce page but I am getting a null string

I have an assignment to complete and its urgent.. So any help would be appreciated.. Here is my attempt: My Vf Page: <apex:page standardController="account" extensions="accsearchcontroller" ...
0
votes
1answer
28 views

how to use two standard controllers in a single visual force page

I need to save two objects that have parent child relationship , using a single visual force page. And also I need to pass values to the controller from the form both parent and child object's ...
1
vote
1answer
39 views

Visualforce page for question with custom object.list the all question in the page

I have custom object called offering_details__C which lookup to question . visualforce page for question with saved in the custom object and list all the question in the same page . Below is the ...
0
votes
1answer
48 views

apex:outputlink not working

I have overridden the Accounts View with VF page and when opened in console the link in related list does not work. Like, I have a contact in contact relatedlist and when I click on the link ...
1
vote
2answers
30 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
37 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
46 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
24 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
32 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
143 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
38 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
29 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
46 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
20 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
33 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
68 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
120 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
54 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
18 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
38 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
45 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
40 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
35 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
23 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
40 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
32 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
41 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
38 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
28 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
29 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
59 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
249 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
94 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
35 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
118 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
42 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
71 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
143 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 ...
45
votes
2answers
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 ...
2
votes
1answer
80 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
58 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
93 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
37 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 ...