VisualForce

/VisualForce

What is view state

If you are developing simple visualforce, probably you haven’t heard about it yet.  But when you have already created more complex page, you could get the following error: “Maximum view state size limit (135KB) exceeded.” What does this mean? What is this view state? Salesforce supports a great thing so let us introduce how does [...]

November 9th, 2016|VisualForce|0 Comments

Nice Visualforce Tabs

If you have ever used ‘apex:tabPanel’, you were probably surprised to see the style of tab differed from other Visualforce elements. For this element, Salesforce apparently uses old style, but I can advise you how to change it. You just have to add these 2 lines into your Visualforce page: [crayon-5bede5fcd6a82666860902/] These lines include new [...]

December 10th, 2013|VisualForce|0 Comments

How to use Salesforce Icons

Do you like Salesforce icons and would like to use them in your Visualforce pages? Find below the transparent quide on how to do so. At first you have to find out url of the icon. Right click on your favorite Salesforce icon and select “Inspect element“ (if you use firebug, you can use it). [...]

November 21st, 2013|VisualForce|0 Comments

Formatting currency

In some cases you may want to show numbers in the same way like Salesforce shows currency in outputField, but you have your value in own variable. Visualforce doesn’t recognise it as a currency and as a result doesn’t add nor currency sign (e.g.$), neither commas after thousands, millions,... Instead of apex tag outputPanel with [...]

August 26th, 2013|Javascripts, VisualForce|0 Comments

Get visualforce element in javascript

If you use Javascript in Visualforce page, you may find out that it is more time consuming to get elements from page. Visualforce tags have some lifecycle during rendering page. Lets create simple page: [crayon-5bede5fcd991d556767750/] Here is the final HTML source code of written commandButton [crayon-5bede5fcd992f578506921/] As you can see, id is j_id0:j_id1:theButton not just [...]

August 26th, 2013|Javascripts, VisualForce|0 Comments

Confirm before delete

Have you ever needed some confirmation from user before he makes some action on page, for example before deleting? Solution is simpler than you think. Use standard Javascript popup window confirm(); Here is a simple example: [crayon-5bede5fcda6e2293010518/] Do it in this way, because if you will use rerender on commandButton, action cannot fire. Visualforce will [...]

May 15th, 2013|Javascripts, VisualForce|0 Comments

How to work with jquery in visualforce

jQuery is a multi-browser JavaScript library designed to simplify the client-side scripting of HTML. It is free open source software and easy to use. jQuery's syntax is designed to make it easier to navigate a document, select DOM elements, handle events, and develop Ajax applications. jQuery also provides capabilities for developers to create plug-ins on [...]

May 15th, 2013|Javascripts, VisualForce|0 Comments