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)

1
vote
0answers
16 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
0answers
9 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
29 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
57 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
59 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
16 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
2answers
136 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
29 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
40 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
14 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 ...
-2
votes
0answers
22 views

How to display map collection on Visualforce page

public with sharing class BkExtn { public BkExtn(ApexPages.StandardController controller) { } public Map<name,Edition__c> buks { set;} public Map<name,Edition> ...
0
votes
1answer
23 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
50 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
49 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
37 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
44 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
35 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
59 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 ...
1
vote
2answers
70 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
136 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
63 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
60 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
61 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
28 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
26 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
52 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
62 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
64 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
43 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
90 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
90 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
113 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
95 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
99 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
66 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
130 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 /> ...
1
vote
1answer
30 views

Using component to list rows from related object

I have created a visualforce email template and I would like to display rows from a related object ORC__c which belongs to the Account object. The email template would be selected like so Contacts > ...
0
votes
1answer
222 views

Insert records from a CSV file to saleforce object- Using Visualforce and apex

For example: I have cvs file with account object records . if i uploaded cvs file (in vf page need to create attachment button which takes cvs file and need to create uploadFile button which stores ...
1
vote
1answer
59 views

Listing related data in custom email template via component

I am creating an email template which will be sent to individual contacts, the template needs to list rows from a related object. I have created the relevant component and class which I believe would ...
0
votes
2answers
47 views

Dynamic Visualforce Components with commandButtons tied to records

I'm creating a VisualForce page that is going to load records from a web service using JSON. I have a requirement to add a button next to each record I pull. I don't see a direct way to do this with ...
0
votes
0answers
88 views

jquery accordion with salesforce not working properly

<apex:page > <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script> <style type='text/css'> .accordion{margin:50px}.accordion dd ...
0
votes
3answers
134 views

Dynamic Hide and Show

I have the following piece of code where I want to dynamically hide or show div tag having a component on click of a button.. How can we achieve this? <apex:page sidebar="false" title="Article ...
2
votes
2answers
115 views

apex:selectList with free-form Other field

What is the best way to implement an apex:selectList add-on or equivalent, so that when the user selects "Other" a free-form text field appears to allow the user to enter any value (s)he wants?
3
votes
1answer
41 views

Custom attribute for Visualforce component that accepts SObject fields?

Is it possible to create a custom Visualforce component that accepts an SObject field as an attribute? Basically, I want to replicate what's done with something like ... <apex:inputText ...
0
votes
1answer
119 views

Visual force table display

I have created table using tag , In that table Column Header values are coming dynamically from Apex class as List. while displaying it on vf page I am using tag to populate the values of Column ...
0
votes
0answers
73 views

Display Converted Currency on Visualforce page inDeveloper Edition

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the ...
0
votes
0answers
21 views

Set sObject in component and update in master page

I have a problem, struggling from few hours and feeling lost right now. I have a custom component (AddressComponent.component) with it's own controller (AddressComponentController.cls). The component ...
1
vote
0answers
33 views

Component does not allow to save the object as it reset to old value?

The page shows the fields of the SObject with their expected values. I can modify these values on the page but when I press the Save button the SObject saved doesn't have any of the changes and I ...