Tagged Questions

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
1answer
18 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
18 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
19 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
18 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
14 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
8 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
30 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
16 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
24 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 ...
0
votes
0answers
39 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": ...
0
votes
1answer
54 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
16 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
65 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
23 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
34 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
64 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
23 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
17 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
37 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
92 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
101 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
37 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
121 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
28 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
39 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
17 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: ...
1
vote
1answer
42 views

Convert Amount (currency ) field into words [duplicate]

Example: 1345 One thousand three hundred and forty five.
1
vote
1answer
56 views

Converting Date Into words and displaying using visual force page

I am trying to convert date in words as shown below: 10/07/2014 TENTH Day of JULY, TWO THOUSAND FOURTEEN
0
votes
2answers
97 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
96 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
115 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
43 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
39 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
31 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
54 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
53 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
96 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
59 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
45 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
60 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
34 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
39 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
295 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
99 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
54 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
75 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
30 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
56 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
90 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
242 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" ...