Questions tagged [visualforce]

Visualforce is Salesforce.com's HTML template technology, allowing dynamic creation of web pages (as well as other files) utilising Apex logic and SOQL queries to replace merge fields with content.

Useful Links

1348 questions
6
votes
4 answers

Custom Button or Link to a Visualforce page with a custom controller

I have a Visualforce page using a custom controller that is used to edit multiple records under an opportunity. I'd like to create a custom button or link from Opportunities to this Visualforce page. Currently the link looks…
Daniel Ballinger
  • 11,767
  • 10
  • 66
  • 93
6
votes
2 answers

CSS, Salesforce, ExtJS, and the blues

I've been asked to demo some ExtJS UI enhancements to our current apps inside Salesforce. This is just a proof of concept that ExtJS will work as a good UI replacement for the default UI that most of our VisualForce pages use. Everything works…
Stephano
  • 5,368
  • 6
  • 36
  • 57
6
votes
1 answer

unable to access RESTful services which build on force.com platform using Apex

I have create a RESTful service on Force.com using Apex below is my code. @RestResource(urlMapping='/helloWorld/*') global with sharing class RestWebservice { @HttpGet global static String helloWorld(){ return 'HelloWorld'; } } I am…
Vivek P
  • 3,000
  • 6
  • 23
  • 31
6
votes
1 answer

Uncaught TypeError: Cannot call method 'noConflict' of undefined

I am trying to create a widget using javascript and jquery in SalesForce, I was stuck with a ERROR: Uncaught TypeError: Cannot call method 'noConflict' of undefined Below is my code which i am using (function() { // Localize jQuery variable var…
Vivek P
  • 3,000
  • 6
  • 23
  • 31
6
votes
4 answers

How to show only extracted error message from Custom Validation on a Visualforce Page?

I have added few custom validations using Configuration for an object. I am inserting that object record through visualforce page. I have added on my visualforce page. I have also written code block for catching the exception…
kshitij
  • 63
  • 1
  • 1
  • 3
5
votes
1 answer

How do format output text to show only whole numbers and not decimals along with it in Vf page

I want to display a field in a object to show just the whole number/integer value. This field has decimal values in the structure but for i need to show the integer value for this VF page only.
Prady
  • 9,658
  • 38
  • 120
  • 170
5
votes
2 answers

How to assignTo a setter in Salesforce that requires an index parameter, such as a List<>?

In a controller I have two values: public List StringValue {get; set;} public List ListValue {get; set;} The ListValue is initialized in the constructor and several strings are added. At this point in a value I can refer to these…
David
  • 23,228
  • 8
  • 59
  • 82
5
votes
3 answers

How to get in a Visualforce page controller a value from a custom component controller?

I'm trying do develop a visualforce custom component which is an entity chooser. This custom component displays a UI which helps browsing some records. It's possible to select one record, and I'd like to get it from outside the component or its…
hrobert
  • 53
  • 1
  • 1
  • 5
5
votes
4 answers

Salesforce Session variables, set and get variables in Session

I want to be able to read / write some variables to the current session in my Salesforce site pages. I have a site built using Salesforce Sites, I need to store/retrieve some values across all the pages (consider that I am building something similar…
Tea Bee
  • 361
  • 2
  • 7
  • 17
5
votes
4 answers

if-else conditional block in visualforce

I had used c:if, c:when JSTL tags in jsp. But I don't know if anything similar is available for visual force pages. just for example I am providing sample code for jsp. --

A Demo conditional section code

Plymouth Rock
  • 472
  • 2
  • 6
  • 19
5
votes
3 answers

2 Way SSL - Client Certificate Not Sent To Server

I'm have an application deployed to salesforce on the force.com platform, which I'm trying to configure a 2 way SSL for. I.e. I want that for each request sent to from SF to my server, a client certificate will be sent. I did the necessary…
Y.S
  • 1,703
  • 2
  • 15
  • 26
5
votes
6 answers

VisualForce: convert carriage returns to html line-breaks in a long text field

In Salesforce, if I'm binding a text field into a VisualForce page, whats a good way to convert the carriage returns in the text-field into HTML
tags? e.g. starting from something like this:
codeulike
  • 20,946
  • 27
  • 113
  • 161
5
votes
1 answer

Searching for the instance of global variable $Label in salesforce

My code in gobal footer component - It is displaying in page"© Copyright 2012 " I am new in Salesforce. I just want to modified text with "© Copyright 2013 " In place…
Javascript Coder
  • 5,209
  • 7
  • 38
  • 82
5
votes
3 answers

Apex why doesn't the standard controller set the current page when creating the controller (Unit Test)

In Apex Unit tests why doesn't the MyConrtoller myCont = new MyController(StandardContoller); call set the current page? For instance if I have this page:
rjbez
  • 742
  • 2
  • 11
  • 20
5
votes
2 answers

Unable to bind Component attribute with controller

I am trying to develop a visualforce custom component which takes an attribute from a visual force page. I need to access that attribute in controller's Constructor so that i can brings some records from database and i need to display those records…
Vivek
  • 111
  • 2
  • 4
  • 11
1
2
3
89 90