Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 320

Visualforce relates to questions where the Visualforce language or framework are concerned. This is primarily VF pages, components, PDF rendering, and email templates. This would only cross-over to Lightning where Lightning Out (Lightning for VF) or VF pages using SLDS or being used in LEX. Where a question relates to Apex invoked as part of a VF page, this tag would also be appropriate.

6 votes

How to check that any error message is diplaying in visualforce page

Pages with a StandardController expose a property: {!Messages} Without the need for a custom controller or extensions, can do things like: <apex:pageBlock rendered="{!ISNULL(Messages)}"> <!-- d …
Matt and Neil's user avatar
4 votes

Using public variable in global static variable

This is an instance variable, he will not be visible from static methods: public string dist {get; set;} @RemoteAction annotated methods are necessarily static, and class properties won't populate …
Matt and Neil's user avatar
1 vote

Can I check if Map contains key or not in Visual Force page under the <apex:repeat> tag

You can use a wrapper class, or marshall them into an arbitrary in-memory SObject (eg WebLink) in your controller, which won't whinge about null values when accessed in Visualforce. …
Matt and Neil's user avatar
14 votes
Accepted

Controllers with apex:include and apex:composition

in the entry point page, this may be interesting: apex:include targets cannot traverse standard controllers but apex:composition defines can traverse included pages Otherwise I think the only way Visualforce … can talk to other Visualforce is by using an apex:component that exposes an apex:attribute. …
Matt and Neil's user avatar
12 votes
Accepted

How can I make a VF page public?

After creating your Visualforce page: go to Setup > Develop > Sites, register your Force.com subdomain name, create a new Force.com Site next to 'Site Visualforce Pages' click Edit add your page to … the list of Enabled Visualforce Pages …
Matt and Neil's user avatar
8 votes

What is URL for SFDC Knowledge Icon?

To see the tabs, you need the 'Knowledge User' permission after enabling Knowledge itself. This avails the 'Articles' and 'Article Management' tabs, then we can find the icons living in their own fold …
Matt and Neil's user avatar
2 votes
Accepted

Include page dynamically

You can (in a limited fashion) do dynamic includes. The trick is to use the $Page global like this: <apex:page> <apex:include pageName="{!$Page[$CurrentPage.parameters.include1]}" /> </apex:page> …
Matt and Neil's user avatar
2 votes

Invalid parameter for function URLFOR

I think you've minced the URLFOR parameters. first param is $Page second param is Id third param is ['param'='eters'] fourth param is Boolean try this: <apex:commandButton value="Add Killer C …
Matt and Neil's user avatar
7 votes

Visualforce and CSS - nothing

It's fine - just take the <style> tags out of stylesheet. Static resource like this :-) h1 { color: #00cdcd; }
Matt and Neil's user avatar
6 votes

Visualforce dynamic custom components: Type.forname no longer works

Unfortunately the Type.forName method has limitations and can't be used with Visualforce Components :-( I raised this exact Case to Salesforce and they advised me the same and that it was "out of scope …
Matt and Neil's user avatar
7 votes

System.VisualforceException: Record set cannot be empty

This is a a small curveball, he must just be constructed with concrete list type. Instead of: new ApexPages.StandardSetController(new List<SObject>()); //System.VisualforceException: Record set cann …
Matt and Neil's user avatar
3 votes

apex:outputField not applying styleClass -- bug?

You totally can! The trick is that it takes instruction from the parent component, usually an apex:pageBlockSectionItem - then apex:outputText will respect it. Change from this: <apex:outputField …
Matt and Neil's user avatar
2 votes

Filenot found error when i run with site guest user license on the debug log

There are two assets on your site which don't exist. When these assets are requested, Salesforce serves FileNotFound.page as a response (hence filling up your Debug Logs). http://peakdevint.devint.c …
Matt and Neil's user avatar
0 votes

How can I display all the records of a custom object to a apex:detail

Can you use the boolean relatedList attribute on apex:detail? A Boolean value that specifies whether the related lists are included in the rendered component. If true, the related lists are displa …
Matt and Neil's user avatar
1 vote

Why don't all the labels for my custom form show in the html returned when using getContent()?

The running user may not be able to access those fields on the page layout for a number of reasons: record types field-level security CRUD permissions However, the magic 00N numbers you're looking …
Matt and Neil's user avatar

1
2 3 4 5 6
15 30 50 per page