Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visualforce-component]

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 <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

0
votes
1answer
32 views

Set value to the Object from apex:inputText

I have an apex component with controller. Controller has Map<String, Object> contentMap. ContentMap was deserialized (untyped) from the JSON file. JSON: { "my_field": { "label": "My ...
-1
votes
0answers
11 views

Page keeps reloading when trying to load a component with visual force continuation inside another lightning component. What'll be the issue?

I am trying to load a component where it uses visual force continuation inside another lightning component. But when i do that, the Page keeps reloading. What'll be the issue?
0
votes
0answers
19 views

How to use auto-complete to avoid error Content cannot be displayed: Collection size 6,399 exceeds maximum size of 1,000

I have pick list field in visual force where it has to display Account name by pulling information from account object but there are 6398 records. due to limitation in sales force i'm getting an error ...
0
votes
0answers
23 views

Refresh Visualforce Component inside Apex:Tab

I have a problem with refreshing vf component after clicking on apex:tab I tried rerender and some actionFunctions, but nothing works. Here is code: <apex:tab label="Overview" name="AccDetails" ...
2
votes
1answer
36 views

Pass value from apex component to controller

I have a visualforce force component: <apex:component controller="NewITAssetController"> <apex:outputPanel> <label>Date field</label> ...
0
votes
1answer
31 views

How to conditional render an icon in component

I need a reusable component that will conditionally render a resource icon on a visualforce page. <apex:page title="Visual Test"> <apex:pageBlock title="Result Component"> ...
0
votes
1answer
34 views

file upload through VF page to external ftp site?

I have a request to increase the file size upload limit from existing 5 MB to 25~50MB. The functionality currently uses a VF page to upload the file to an external ftp server. We changed the ...
1
vote
1answer
50 views

List view button without standard controller

Is it possible to create a list view button without a standard controller? My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
0
votes
0answers
24 views

Copying fields data when checkbox is checked in multiple rows(Visualforce Page) [duplicate]

I have challenge I'm working on a visualforce page I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
2answers
18 views

Multiple Child Records from Parent Related List: Url No longer exist

I need to create Multiple Child Records from Parent Related List but i get the Error: "URL No Longer Exists" but the data saved in the database. Also, it seem that the Parent Id does not populate ...
0
votes
1answer
20 views

Visualforce component to display formatted currency [duplicate]

I have a component that I am using with a visualforce email template. It's a simple table that I get from a controller query to display Opportunity Products. I want ot format the totalprice field so ...
0
votes
1answer
32 views

Dynamic initialization of custom visualforce components [duplicate]

Visualforce has initialization of visualforce components in apex. For example MyCustomComponent component: ApexPages.Component customComponent = new Component.c.MyCustomComponent(); Is that possible ...
0
votes
0answers
17 views

Rerender of Outputpanel not working in modal component

I have a VF page with a modal component in it, which gets displayed depending on a button click. There are 2 issues: I pass a record id to the modal component via a data-attribute, which populates a ...
0
votes
0answers
21 views

Call Apex Controller method from button in Visualforce component table row

I have a Visualforce page which has a few Visuaforce Components to display sections of data, one of which contains a table with an "apex:repeat> for each row. Each of these rows has a button, which, ...
0
votes
0answers
15 views

Unit test for a update list Apex Class [duplicate]

i need to write the Unit test for my class in apex, but i don't understand how to function a Unit test, i read many articles for unit test but i don't understand how to work, my class is this, please ...
0
votes
1answer
14 views

Extension Controller for a parent record return all the child in the Database instead of child related to the specific parent

I have an Object Called Container__c with a child called Article__Container__c. I create a visualforce page to display all child with an Extension Controller. But when i Hit the button on the layout ...
0
votes
0answers
22 views

How to pass a record id to a VF page while in lightning experience

Currently i have a JS button var w = window; var html_doc = w.document.getElementsByTagName('head')[0]; var js = w.document.createElement('script'); js.setAttribute('type','text/javascript'); js....
0
votes
1answer
10 views

VF Component: Wrong type for attribute. Expected <someType>, found String

Simple use case of passing a parent controller's instance to a custom VF component's attribute to allow for inter-controller communication Component <apex:component id="SomeComponent"> <...
0
votes
0answers
12 views

Visualforce component custom getter breaking page commandLinks

I've seen this a few times and want to understand how to handle it. If I have a visualforce component with a custom getter (which I need to run initialize code for that component) embedded in a vf ...
0
votes
0answers
27 views

Chart Not display in visualforce

My code are saved without error but the chart does not display in the VF page portion of the VF page: <apex:page renderAs="pdf" showHeader="false" sidebar="false" applyBodyTag="false" ...
0
votes
0answers
19 views

Cross-domain problem when use VF component from managed package

The original problem is that one of our customers can't use our VF component in their org because of Access to XMLHttpRequest at 'https://c.xNN.visual.force.com/apex/yourpath' from origin 'https://...
0
votes
1answer
46 views

Passing a record variable into Lightning component iframe

Apologies for the noob question here: I am creating a Lightning Component that will dynamically render a VF page embedded in a Lightning Component as shown below: <aura:component implements="...
0
votes
0answers
22 views

How to render blob pdf file from Attachment or Notes of a record in visualforce component?

I created a visualforce email template that should attach a file from a record Attachment which is of pdf format. How to render blob pdf file from Attachment or Notes of a record in visualforce ...
2
votes
1answer
39 views

Passing values from apex:page controller to component?

Is there a way to pass values from a controller in a VF page down to a child component? I need a way to do the following: My page: <apex:page controller="myCustomController"> <c:...
0
votes
1answer
20 views

Group by a column in Visualforce

Please, Help me to group the Data by the column FFP_Centers__c in a visualforce page as in the attached Screenshot. The code below give no error, but i do not know how to group the result by a field....
0
votes
1answer
22 views

How to pass data from parent VF Page into child VF Component

I have come to the problem, when I am using VF Page in which are VF Components loaded. I have in my main page controller method, where i do SOQL for Account and save it into theAccount variable. My ...
0
votes
1answer
18 views

JS Query variable binding

Trying to transfer an apex query to Javascript. Wondering if binding works in the same manner? Also is using result.length valid for the if statement? var accLike = '%' + 'Construction' + '%'; var ...
3
votes
3answers
499 views

Check if object is null and return null

I'm doing a query to an object. My question is if nothing returns is it technically null. I want to return null if it is. People person = [SELECT Id, Type FROM People WHERE (Type LIKE '%Construction%'...
0
votes
1answer
23 views

Dynamic value Apex

Currently have this line of code. <li><a href="{!URLFOR($Action.Attachment.Download, '00Pr0000ID00000')}" target="_blank" name="Application" id ="{!ApplicationObj.id}">Download</a>&...
1
vote
1answer
36 views

New custom field missing in standard controller?

This should be a simple change. I am modifying code from a previous developer so if there are any suggestions they are very welcome. This is a simple button to call a VF page that will produce a pdf ...
0
votes
0answers
8 views

How to Detect a Video if Finished Playing

I was able to Play a Video with a simple HTML5, however, I was trying to detect if the video is paused or finished, but the native events "paused", "played" and "ended" are not working. can someone ...
0
votes
0answers
17 views

Mailing Address Suggestions not showing in Lightning Component

I have a lightning component which is used in the community. When I have added mailing address field in the code, I can able to see the field but suggestions are not coming as we see in lightning ...
0
votes
1answer
20 views

How to make the target of an output link be displayed next to the pageblocktable?

So I'm having an issue trying to display the contacts of accounts next to the pageblocktable. The functionality I want to occur is that once an account is clicked to display the contacts for that ...
0
votes
0answers
18 views

Can I call a javascript function that is defined in a vf page in a vf component?

I have javscript functions in my vf page. I am using a vf component on that page. Is there a way to use those functions in my vf component? If not, then alternatively, can I change style properties of ...
0
votes
1answer
35 views

Is there a way to change the value of a picklist on a vf page when it is copied from another picklist?

So I have a form that has 2 Address divisions. When the checkbox is checked the field values from one div copy to the other div. There is a country picklist in both the divs. But the value of that ...
0
votes
1answer
10 views

How to solve this error Unknown constructor 'MassDelete.MassDelete(ApexPages.StandardController controller)'

// Apex Class //This problem is occurred while I Use extension concept in VisualForce Page it give error Here is Code// public class MassDelete { public List<Account>accounts{set;get;} ...
-2
votes
1answer
109 views

how to create dependent picklist in vf page

I am having a multiselect picklist in that am displaying the list of profiles in the org using SOQL Query.My usecase is like when i click on any profile/profiles those related applications should be ...
1
vote
1answer
181 views

How to do inline editing in pageblock table values

I am passing a list to the pageblock table and my table looks like below i want to edit the table values. I tried the below code. This is my VF Page code <apex:pageBlockSection id="section2" ...
4
votes
2answers
55 views

How is an object instance passed with apex:attribute reflected in ViewState?

BACKGROUND I want to build a wizard using Visualforce Components. For this I represent each step as a separate component. Each component has an attribute that represents a controller instance from ...
0
votes
1answer
94 views

How to Re Render an outputPanel on a button click?

So basically I'm making a visualforce page and there is a section that needs to be re rendered on a button click. From what I've read on the internet I can use outputpanel to achieve this. What I need ...
2
votes
1answer
155 views

Is there a way to create a searchable picklist in a visualforce page?

I have a picklist field and I was wondering if there is a way to add a searchbox at the top of the picklist where we enter a picklist value and it searches through the picklist to find the values. ...
0
votes
0answers
49 views

Custom Controller in Email Template not passing values to Class

I have created a simple visualforce email template: <messaging:emailTemplate subject="PRICING APPROVAL NEEDED for - {!relatedTo.CameleonCPQ__AccountId__r.Name}" recipientType="User" relatedToType="...
0
votes
3answers
249 views

What is the difference between Apex:messages and Apex:PageMessages in VisualForce? [duplicate]

I am having some confusion while using PageMessages and Messages in my VF Pages. I'm using an apex controller to pass a message to my vf page but the problem is that if I use PageMessages then it ...
0
votes
1answer
123 views

How to get List from Visualforce Component Controller

I have a visualforce component which is used in an email template to display a list of related items. Visualforce Component <apex:component controller="LeadProductsController" access="global"> ...
-2
votes
1answer
64 views

How to call one method after another in wrapper class? [closed]

I Have a lookup based on that value selected i have to query and get the select options. I am trying to call the wrapper class but its throwing me null pointer error.guide me where i am going wrong. ...
-1
votes
1answer
44 views

How to rerender specific row independently for picklist values

I want to render picklist values based on each row when lookup is selected. There is a filter where it checks the recordtype of the lookup and based on it picklist value will be displayed. The problem ...
0
votes
0answers
54 views

Explain side-effects of allowDML attribute in apex:component

In the documentation for apex:component it is said about the allowDML attribute: If this attribute is set to "true", you can include DML within the component. The default is "false". Allowing DML ...
0
votes
1answer
72 views

Lightning Design System full width modal

Very sorry for the low quality post, currently at a Salesforce event! We have an issue with a lightning component modal defaulting to 50% width with the app.css file setting that..! How can we ...
1
vote
1answer
96 views

Can I build a wizard with Visualforce Components?

The classic example Creating a Wizard shows how to build a wizard using 1 apex controller and several visualforce pages. In my case our wizard has 5 pages and 1 controller. The problem is that the ...
3
votes
1answer
70 views

How to share Visualforce page (<apex:page/>) controller with multiple child components (<c:componentName/>)

I have a Visualforce page that is essentially a form with 8 steps. It uses a custom controller. I have recently moved each step into it's own component (8 in total). Now what I am wondering is, can I ...