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)

3
votes
1answer
15 views

Unable to set controller extensions property with component attribute

I tried setting "accType" property in this extension class with "Customer - Direct". But it is not getting set or getting set as NULL. My VF Page <apex:page standardcontroller="Account" ...
0
votes
1answer
9 views

ApexPage.Action passed to VF component as component stays null and cannot be invoked

I have a custom VF component that gets passed in an ApexPages.Action (=passedInAction()) that needs to be invoked when the user performs some changes inside the component (=doInvokeAction() method). ...
4
votes
1answer
76 views

reusable auto complete component

I'm using a custom auto-complete component as described here: auto-complete I've abstracted the code in the AutoCompleteController into a separate dynamic query utility, so in the auto complete ...
0
votes
1answer
23 views

Salesforce community with URI

I haven't been able to find any docs online so I don't know if this is actually achievable. Currently where I work we have a couple different landing pages, they are built in Wordpress and each of ...
2
votes
1answer
30 views

Floating divs side-by-side that contain Apex:repeat without table?

I'm an Apex developer that's trying to style a few Visualforce components within divs, but I have absolutely no web development experience so I was hoping someone could point out what I'm doing wrong ...
1
vote
2answers
41 views

Re-rendering content within Custom Component from Visualforce Page

Is it possible to re-render the content within a Custom Component from the parent Visualforce Page? I have a custom component in an apex:outputpanel like so: <apex:outputPanel id="popup"> ...
1
vote
1answer
33 views

Passing parameter from component to controller through ActionFunction

I would like to pass a parameter from my component to the controller. Here is the source code: <apex:actionFunction name="attachFil" action="{!attachFile}"> <apex:param ...
0
votes
1answer
39 views

Getting Blank PDF (without content ) using VF Email Template ( By default attaching PDF)

Original question: Hi All I have creaed approval process on custom object where i need to submit a PDF document for approval process. Once I attached the PDF file and submitted for Approval, am ...
6
votes
1answer
76 views

Can visualforce components from a managed package be used in a visualforce page?

Can we use managed package component inside Visualforce which is developed in org where we installed the package ?
0
votes
1answer
23 views

CSS style issue for PDF in Visual force email template

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF. Please help me out.
0
votes
1answer
24 views

ActionFunction in ActionRegion in Component doesn't work

I'm extracting part of a Visualforce page into a component, however there's one piece of functionality that doesn't come across. Here's a simplified apex snippet: <apex:actionRegion> ...
0
votes
1answer
36 views

Error Attempt to de-reference a null object in component class

I realize there are a lot of 'de-reference a null object' questions out there and I've damn near read them all, but I still can't figure out why the Account.Id is null in my code. I've tried ...
1
vote
2answers
53 views

How to show “blank” value in the multiplicklisk component

I have used the below component and please guide me how to create the onchange event attribute. Code gets from : ...
1
vote
0answers
23 views

passing html passthrough from apex to selectoptions

I'm trying to pass through some additional information via the html- passthrough on apex:selectoptions from the controller. Ie I need it to output: <apex:selectOption html-data-range="h" ...
1
vote
1answer
17 views

Reuse / share functionality between base and extension managed packages

I have a managed base package that contains Visualforce components and pages that I would like to reuse in its extension package. I don't want to make them global as this would allow customers to ...
0
votes
1answer
42 views

Add Scrollbar to Visual Force, dependent on Window Size

I have a Console component which is a Visual Force page; this one opens up from a ribbon tab in the bottom and is by default attached to this ribbon menu. I have the ability to de-attach this one so ...
0
votes
3answers
77 views

How to pass String List values to Controller using apex:actionFunction?

I am not able to pass String List to Apex Controller using the apex:actionFunction. Here is the complete code: <apex:actionFunction action="{!methodOne}" name="methodOneJS" ...
1
vote
1answer
64 views

Order of execution for Visualforce page Get requests

I am new to VisualForce and trying to understand the order of execution and came across this example in the page developer's guide where a sample page uses a custom component- <apex:component ...
1
vote
0answers
20 views

Open new console tab from within subpage

I have a visualforce page running within the Account page for which I want different behavior in and out of console. When I'm in console, I want to be able to click on a link within the sub-page and ...
2
votes
3answers
167 views

Existing file as attachment in visualforce component

This time I would like to ask if anyone was able to add existing document/attachment(PDF) to visualforce template as file attachment? Of course I mean add as part of logic in template(component). This ...
2
votes
0answers
33 views

Why does this input fields conflict with each other?

I have two components that are conflicting with each other: component1: <apex:component > <apex:attribute name="cntact" description="A Contact for the component." type="Contact" ...
1
vote
1answer
63 views

Constrain VF page to fit within width of dashboard component

I'm trying to format a visualforce page so that it can render correctly in a dashboard element. It's just an rss feed, but the column width is too great. I'd like to limit it's width so that it is ...
1
vote
1answer
20 views

UI approach for linking child records from the parent view page

Imagine an app using Account and Contact records. Both can life without another, but on Contact there is a lookup to Account. If you want to link a Contact to an existing Account using Salesforce.com ...
0
votes
1answer
37 views

Embedding dashboard in Home Page component

I am trying to embed the a Dashboard on my Salesforce Home Page. I have inserted this via iFrame but on loading the home page, the page redirects to a full page version of the dashboard. Can someone ...
0
votes
3answers
75 views

I'm getting “List has no rows for assignment to SObject” error on a Visualforce component

EDIT: Is there a recommended way for a VF email template that uses a VF component to display in the SFDC UI such that you don't get the error message "Error occurred trying to load the template for ...
1
vote
2answers
58 views

ActionFunction doesn't fire

I've tried to simplify my problem. I have a component like this: <apex:component controller="GenericLookup"> <apex:includeScript value="{!URLFOR($Resource.jQuery, ...
1
vote
1answer
42 views

custom component inside form

i am try to make custom "NEW CASE" page and have problem: I'am receive this message when try to post Case: Unknown property 'CaseSSCFixComponentController.Support_Service_Contract' Part of page: ...
0
votes
1answer
52 views

Wrapper class for adding dynamic rows in VF page [closed]

How to use wrapper class for adding dynamic rows in Visualforce page??(ie)When click button one row have to get add. can any one plz give me code for this...
0
votes
1answer
63 views

Unable to add row dynamically in vf page

I am beginner to salesforce. I want to add row dynamically to VF page when i clicked add row button. this is my script <apex:page standardController="Employee__c" extensions="Cutomextension"> ...
3
votes
2answers
36 views

What would would be the best controller for a custom gateway page for a community?

I am trying to write a custom VForce page for a Community landing page so after users login they can see the main sections of the Community and click on the links and then go to the page layouts view. ...
0
votes
2answers
84 views

Use standard stylesheet with custom for Chatter VF page

I am designing a custom styled vf page that will show the user's chatter feed. I am trying to use the chatter:feedWithFollowers component but all the styling goes away when I use the ...
2
votes
2answers
106 views

Type mismatch for <apex:attribute assignTo>. Value binding to a property of type ANY is required, property specified (objectValue) is of type Object

I need a bit of guidance here. I'm working with a visual force which actually was correctly deployed in an org (and working fine), through an ant target, using salesforce tool. Note that not all ...
0
votes
1answer
183 views

Apex inputfield value using Javascript

I am using Javascript to get the value of an account lookup field contained in a visualforce page component. In the console, the value of my Javascript variable is Null. Please advise on the correct ...
2
votes
2answers
64 views

Developer Console throws Type Exception

I have a base class that's a mash up of the base classes here. What's important is that this class contains the following property and method: public CommunicationBase Owner { get; set; } public ...
0
votes
1answer
78 views

VF component attribute control outputPanel rendered

I have the following VF component, <apex:component layout="none" selfClosing="true"> <apex:attribute name="label" description="This is pretty name for this input" type="String" ...
2
votes
1answer
82 views

VF component dynamic inputField

I have the following component, <apex:component > <apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/> <apex:attribute ...
1
vote
2answers
35 views

VF component inputField

So I have the following componenet, <apex:component> <apex:attribute name="label" description="This is pretty name for this input" type="String" required="true"/> <apex:attribute ...
1
vote
1answer
35 views

Is there a way to map fields for existing PDF document using APEX/VisualForce with the relative data from Custom/Standard objects?

Is there a way to map fields of an existing PDF document using APEX/VisualForce with the relative data from Custom/Standard objects? Here is the situation - There is an existing PDF document and we ...
0
votes
1answer
66 views

apex:actionsupport rerender issue with two required fields

I need to have two required fields as lookup input field (one for account and one for contact) in a single pageblocksection section. On selection of each lookup, a particular section is getting ...
0
votes
2answers
90 views

News ticker Like component for home page?

I am trying to create a new home page component that will display a scrolling message on the home page. The use case is to provide end users with tips and hints around general usage. This used to be ...
1
vote
1answer
72 views

How to download to particular employee details using custom object to excel sheet using visualforce page

I am trying like this but its not getting exact output. Visualforce page: <apex:page controller="MyControlleremployee" tabStyle="employee__c"> <apex:form > <apex:pageBlock ...
0
votes
1answer
54 views

Problem with sending an email that uses a custom component/controller

I've put together a Visualforce email template for cases and I'm running into an issue with it that only occurs when the case is initially created. The component pulls a list of related records from a ...
1
vote
1answer
119 views

Get id from Current Page Url issue

I have scenario redirecting from one visualforce page to another visualforce page using apex code and have also set some parameters for second visualforce page. I tried to retrive the id using ...
2
votes
0answers
107 views

Pass VF component attribute to component extension

Following is my code: VF PAGE: <apex:page standardController="account" extensions="ForecastHierarchyEditExtension" tabStyle="Account" sidebar="false" standardStylesheets="false"> ...
3
votes
1answer
115 views

Unable to access component attributes in specifc getter methods

I am setting a string as an attribute someString in a custom component tabComponent from the mainPage. I know that we cannot access the attribute in the constructor of the VF component controller, but ...
0
votes
0answers
27 views

RTF field with special characters

I have two RTF fields, 1 is Description , 2nd is Temporarly Description I have a workflow which is updating Values of Temporarly Description with Description. Problem: If Description contains Special ...
0
votes
0answers
109 views

Multiselect picklist's Selected Values are not getting reset on Instantiate Object

I have 2 vf pages, On first page the values which has been selected by user need to be remained in second vf page. On second page values of two fields are disable user can't make selection of it. ...
0
votes
1answer
116 views

Return SOQL for current record on Visualforce Email

I'm going to have to write a custom controller for a Visualforce email to pull back details for the contract where my "send email" button will be hosted. My relatedtotype is the Account object (has to ...
7
votes
1answer
77 views

Create a visual force Component with tags that require form to be used in page within form tags [duplicate]

I have run into a dilemma where I have a bunch of VF page markup and code that is to be used on Two different VF pages. I would like to put all of this code, javascript, etc into a component so it is ...
4
votes
1answer
176 views

Handle Multiple <apex:form> elements in one Visualforce page

I have a visualforce page with an apex:component in it. (This component is for headers, used in various other places). <apex:page title="" ... > <apex:form> <c: HeaderV2 /> ...