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
0answers
20 views

jQuery for Visualforce page and component [on hold]

Is it possible to use one jQuery library for Visualforce page and components (without including main library)?
0
votes
0answers
18 views

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

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
17 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
18 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
29 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
16 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
19 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
12 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
20 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
7 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
11 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
17 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
15 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
26 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
17 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
36 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
19 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
18 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
16 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
344 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
22 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
35 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
14 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
19 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
9 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
75 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
98 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
49 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
53 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
108 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
43 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
119 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
65 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
48 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
38 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
42 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
57 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
84 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
67 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 ...
0
votes
0answers
28 views

Visualforce - Passing data from a child visualforce component to a parent visualforce page

I have successfully created a visualforce page (parent VF page) that includes a visualforce component (child). Using the parent controller, I need to retrieve a variable (a list of custom object) ...
1
vote
2answers
42 views

Visualforce component ids

Creating an element using visualforce: <apex:input id='myid'/> results in: <input id="j_id0:j_id5:j_id50:myId" type="text" name="j_id0:j_id5:j_id50:myId"> What is the purpose of adding ...
0
votes
2answers
196 views

Pass Id from Visualforce Email template to Controller

I am trying to pass an id through a Visualforce email template component to its class. The class creates a wrapper, to combine two objects records into one list. The two objects lists have a common ...
0
votes
0answers
9 views

Screenshot wave dashboard on visual force page

Is it possible to take a screenshot of the wave dashboard on visualforcepage using apex? Currently, I am using html2canvas to take a screenshot. But the problem is once I the a screenshot of the ...
1
vote
0answers
39 views

How to navigate from one visualforce component to another visualforce component

I have 3 tabs in which 3 different components are placed. How can I navigate from a button that is present in one component to another component? Visualforce Page <apex:page controller="...
0
votes
0answers
46 views

How to open the particular template based on templateID of docusign within salesforce

public with sharing class EmbedSigningController { public static Contract contract {get;set;} public static String envelopeId {get;set;} public static String tokenURL {get;set;} ...
0
votes
1answer
61 views

ActionFunction call a controller method but “system.debug” messages are not printed

I have a visualforce page with a page component showing a list of object. I need to call a controller method when a user updates an <apex:inputField> in order to print in the log that value. ...