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
9 views

Angular JS code in visualforce component is not working on Command Button click in visualforce page [on hold]

If visualforce component is added in a vf page separately then it works fine. But if vf component section is rendered on click of command button in vf page, then angular js code inside that component ...
-1
votes
2answers
26 views

get the value of a field in the pageblocktable

I called the value of the field with this code <apex:column headerValue="Teacher" id="tname" value=" {!schedule.tlname}, {!schedule.tfname}" /> now how can I get the value of ...
0
votes
0answers
22 views

Merge 2 controllers in one apex class [on hold]

I want to merge my 2 controllers in one apex class Can i merge 2 controllers in one apex class? Any sample code will be appreciated. Thank you in advance.
0
votes
1answer
15 views

Can I preview visualforce email template into visualforce page?

I want to display the visualforce email template inside a panel with live preview if possible, so while I'm writing lead_name__c for example It will be bind to template where Dear ...
0
votes
1answer
15 views

check if the schedule has been taken VFP page

The checkbox will check if the time(picklist) entered for the teacher is still available. if it isnt, there will be an error. please check my code. my error is Error: Compile Error: unexpected token: ...
3
votes
0answers
23 views

Hide iframe url

I am using a visualforce page and adding an apex tag: <apex:page standardController="account"> <apex:iframe src="a.com/embed/preview/f?theme=dark fullscreen" width="100%" height="800px" ...
0
votes
1answer
21 views

How to hide or show (<DIV>) items dynamically in a VF Component?

I have the below VF Page where I am using pagination to only show 7 records at a time: The VF component code in the VF page is: <apex:pageBlock id="navGroup" rendered="true" > <div ...
2
votes
1answer
52 views

output Dynamic HTML with VisualForce component

in my page I show a list of records along with pagination as below: the navigation buttons at the top are output from a VF component in my controller: // List Records pagination public ...
1
vote
1answer
27 views

Pageblock not re-rendering after button click for pagination

I have a VF page that lists all the records for a user: I am trying to add pagination to the list as described by redpoint in their article here is my VF Page code: <apex:pageBlock ...
0
votes
2answers
33 views

I got null value from component attribute

I got null value for agreementId when I try to type it Apex Class public class selectedTasks { private final List<agreement__c> agreementTasks; public String agreementId {set;get;} ...
-1
votes
0answers
14 views

How to access list of one class to another

vfpage1 <apex:page> controller="UploadingCSV" <apex:commandButton value="Download" action="{!Call_VF_Page}"/> </apex:page> class1 public UploadingCSV { //code ...
0
votes
0answers
18 views

<zqu:SelectProduct options=“{!theOptions}” /> not working

I am following zuora's instructions, which say to use the following: <zqu:SelectProduct options="{!theOptions}" /> when using their SelectProducts custom component. The problem, is when I add ...
0
votes
0answers
23 views

managed class is not global, and not visible, but, I want to get to my custom controller instead

I am a newbie, sorry about that. I will try to put in as much info as I can for this. I am trying to use the Zuora SelectProduct custom component, with my own Visual Force Page and my own Visual ...
0
votes
1answer
17 views

null reference error on Zuora custom component

I am getting a null reference area trying to use Zuora's custom SelectProduct component which is using its Quote Wizard. The only difference in the VF markup is this, original: <c:SelectProduct ...
1
vote
0answers
21 views

how to pull a managed VisualForce component onto my Visual Force Page

I am replacing a managed custom VisualForce page that is step 3 of a wizard. On the custom VisualForce page I created to replace the original, I am able to pull in the wizard component, so, the steps ...
0
votes
0answers
10 views

replacing a manage custom Visual Force Page with my own on step 3 of the quote wizard

I am new at this, so, please forgive me if I ask something obvious. I need to replace a page that is called while a managed package QuoteWizard is running, on one of the steps, I need to replace the ...
0
votes
1answer
15 views

how do I add a field set to a custom visual force page running a quote wizard

I am new at this, 10 days on the job, so, please forgive me if I am asking something obvious. I have a Custom Visual Force Page that runs within a QuoteWizard. I need to add some fields to this ...
0
votes
0answers
11 views

Getting a 500 error with an actionFunction

I am getting a 500 error with an actionFunction. The apex function executes successfully, but a 500 error is returned. Controller: public Pagereference Suggestions() { system.debug('search ' ...
1
vote
1answer
20 views

Visualforce Email Template - Related To

I am trying to fetch all the Opportunities associated with the User.Below is the Visualforce Email Template. I am stuck with the line of the code received error: Error: Invalid field ...
1
vote
2answers
108 views

Is Apex Class creation (for VF Controller) Restricted to Sandbox?

I have been progressing along my journey trying to pass sub-Opportunity data into an Opportunity record's alert. Thanks to your help, I was able to successfully compile and trigger a VisualForce ...
0
votes
0answers
9 views

Cross origin reference is not allowed [duplicate]

We have to display different dashboards to different profile's on user home page.while displaying dashboard in home page, using a VF in home page components, the dashboard link is not opening. when I ...
0
votes
1answer
50 views

Multiselect picklist in in if condition in visualforce page

I am trying to rendered below code <apex:commandLink rendered="{!or($User.IsUser.contains('admin'),$Profile.Name == 'System Administrator',) Is User is Multiselect picklist. While saving its ...
4
votes
0answers
41 views

How can i hide approve/rejction link in approver history using visualforce area in home page componenet?

I am trying to hide approve/reject links using visualforce area but it is not happening below is the code and i am already include this page in home page componenet- <apex:page ...
0
votes
1answer
27 views

Display all Accounts in the dropdown

Apex Class : public with sharing class AccountController{ public String getListOfAccounts { get; set; } public String selectedaccountId {set;get;} public List<SelectOption> ...
0
votes
0answers
33 views

want to call Script from Visualforce page

When i run below code on button click event, it is not working. <apex:page > <apex:form > <apex:includeScript value="{!$Resource.jqueryAvaWidget}"/> <div ...
4
votes
1answer
37 views

Visualforce Components with Shared Abstract Class

I have multiple visualforce components that each have their own controller that is extended from a base abstract class. For example: Visualforce Page: <apex:page> <c:MyFirstComponent ...
0
votes
0answers
12 views

How to default a template to <apex:emailpublisher> Subject and email body

I have VF page that includes component. There are 2 attributes emailBody & subject. Tried setting up them by apex method ; emailBody="{!defaultEmail.HtmlValue}" ...
1
vote
0answers
24 views

check the save method this code is created a copy when i click on edit button then save button in edit page [closed]

public class ContactInsertController{ public Contact con{get;set;} public String s{get;set;} public String id{get;set;} //Constructor public ContactInsertController() { ...
0
votes
0answers
22 views

search command button not working?

this is my page <apex:page controller="contactcloudcontroller" showHeader="true" tabStyle="contact"> <c:searchComponent ></c:searchComponent> ...
1
vote
1answer
20 views

tr:hover{} this code print on page but i want to work that when my mouse point on a particular tr background color will apply

<apex:component controller="contactcloudcontroller"> <apex:form id="pgBlock"> <apex:pageBlock> tr:hover{ background-color: #87cefa; cursor: pointer; ...
1
vote
2answers
56 views

search method not reRender and not working (Communicate between two component and parent page)

this is my page <apex:page controller="contactcloudcontroller" showHeader="true" tabStyle="contact" rendered="true"> <apex:form > <apex:pageBlock id="pgBlock"> ...
1
vote
1answer
36 views

VisualForce Email Template Error: Invalid field for SObject

I am trying to save a visualforce email template that has both plain text and html elements-- I just tried saving a plain text version to confirm the error is not being caused by an HTML ...
1
vote
0answers
49 views

How to call actionStatus in javascript onchange event?

I want to show loading image on change of a selectlist value. Already 3 javascript functions is being called during onchange event, hence actionSupport is not working when onchange event is used. I ...
0
votes
0answers
40 views

How to show processing/loading image in VF Page when select list value in visualforce component changes?

I have few select lists in a visualforce component. This component with select lists is placed in a VF page. Now on change of any select list values, I want to show the loading/processing image in VF ...
0
votes
1answer
35 views

how to create contact detail page using controller [closed]

public with sharing class ContactDetailController { private ApexPages.StandardController standardController; public string conId{get;set;} public ...
1
vote
1answer
29 views

I want to use a <apex:commandLink> inside of a <apex:component> [closed]

Well, the titlle says it all ! I need to use the inside of a custom visualforce component. Any help is appreciated ! Thank you so much !
0
votes
0answers
60 views

Sending single PDF attachment in a visualforce email template

I'm trying to send single PDF attachment in a Visualforce email template being used in an approval process. Custom Component - <apex:component controller="findExpenseLines" access="Global"> ...
-1
votes
1answer
18 views

is it possible to create a section in vf page and add lightning components to it [duplicate]

is it possible to create a section in vf page and add lightning components to it. Split a screen into two and then add lightning components.
-2
votes
1answer
22 views

Can we add a section in our vf page and add components to it [closed]

Can we add a section in our vf page and add components to it. I mean split my vf page into two parts and then add components to it.
0
votes
1answer
25 views

Problem with a component display

I have a visualforce page, wich call a component like that : <div> //some code that is not related to the component (and working) </div> <div id="selectMode"> <c:MyComponent ...
0
votes
1answer
44 views

Apex Page Message

I have a custom page, and it has a field which is inline editable. If the value of the field is changed to null, an apex page message is displayed, the logic of which is written in the controller: ...
0
votes
0answers
46 views

Download an Attachment in VF page, Chrome issue

I have created a VF page which displays the attachments of a case. I have added the below piece of code to view or download a file. <a href="/servlet/servlet.FileDownload?file={!attachment.id}" ...
0
votes
0answers
49 views

How do I display a list of values which are coming from other controller to page controller?

From a class I am parsing a xml and sending those values to another class. I am using this second class as a controller for my vf page where I would like to display the values in a table so that the ...
2
votes
0answers
43 views

Live agent dismisslabel usage

I want to use a URL which redirect customer when support agent was not available on chat. I have used dimiss label to close the chat. Is there any way to redirect customer through URL or can we ...
4
votes
1answer
31 views

Is private getter allowed for apex:attribute assignTo?

In essence, I tried the following setup. I throw an exception in my example because it is simpler to determine if the setter is being called. Component <apex:component ...
7
votes
1answer
100 views

Visualforce components within components

Fairly new to creating Visualforce components and I'm attempting to reuse some of my front-end mark up with multiple components that used in a parent component. At first I question if this was ...
1
vote
1answer
29 views

Case Articles Tool in the Sidebar of Case Feed Page Layout

I have created a visualforce page (code given below) to show articles related to Case and keyword search for articles. This component is displayed as a sidebar in the case feed page layout. The ...
4
votes
2answers
188 views

Call a JavaScript function into another JavaScript function in a Visualforce page

I have a main page, with a main controller, that contains some JavaScript code: <apex:page controller = "controller1"> <script> function function1(){ //I want to call the ...
7
votes
2answers
246 views

How to call a standard controller action of a VF page from a VF component

I have a visual force page as follows which includes a component call Example one, Component has a command button and I want to call the standard controller save action of VF page from the VF ...
3
votes
3answers
320 views

+= returns null despite values

Why am I returning null in this test when everything has a value? I can't put it more simply, but it's driving me crazy. Here's the (simplified) Apex code: public class CalculatorTest { static ...