Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
12 votes
Accepted

Lightning Components: How to make sure that a script loaded via ltng:require is loaded in aferRender()?

As per @TrevorBliss comments , adding afterScriptsLoaded to the ltng:require is sufficient which means there's no need for the renderer. If you really need to do this in the renderer, then you need ...
Praveen's user avatar
  • 10.1k
9 votes
Accepted

Visualforce: Dynamically ReRender a row within <apex:repeat> by passing $Component through controller

Through attempting this same problem on another project I was able to get a fresh look at the issue. What I learned through countless testing is that rerender attribute can be very tricky. For example:...
Xtremefaith's user avatar
  • 4,560
7 votes
Accepted

Urban Legend? Must Return PageReference To Rerender

Analysis Conclusion You do not need to return a PageReference for rerender to understand when the action has completed. So if you have a method that will never cause a redirect, you can make it void ...
Adrian Larson's user avatar
  • 150k
6 votes
Accepted

Layout issue with reRender inputfield on Visualforce page

The apex:outputPanel is messing up your output, as it causes all of its children to be rendered in the same column (it's intended to group together elements inside an apex:panelGrid). <...
sfdcfox's user avatar
  • 493k
6 votes

visualforce page ActionFunction reRender not Working

You can absolutely rerender the <use>and <svg> tag by: The xmlns= on the div containing the SVG is a MUST as if you try to rerender without it the page will simply stall. Important trick ...
Eric's user avatar
  • 54.2k
6 votes
Accepted

actionSupport reRender not working in my VF page

There are 2 issues in your code. event "onchange" is case sensitive (all will be in lower case). So, DO NOT use "onChange" If you are using actionSupport for rendering then <apex:inputText ...
Santanu Boral's user avatar
6 votes
Accepted

Sub Output Panel not rendering on Re-render

Rendered is not reevaluated when directly rerendering the element. You need to rerender the parent element. If the element is not rendered initially a rerender on that element will not work Since ...
Eric's user avatar
  • 54.2k
5 votes
Accepted

Lightning design system - SVG disappears after rerender

Its a known bug in SFDC Visualforce page .I have used a jquery approach with action function to manually write the DOM .You can use Oncomplete event and custom write the DOM to replace The Script ...
Mohith Shrivastava's user avatar
5 votes
Accepted

Visualforce Page's outputText not updating when other outputPanels are next to it. Why?

You need to change the code like this way Firstly, Remove immediate=true from apex:selectRadio which stops assigning controller attribute properly. Secondly, Wrap those outputPanels (which are ...
Santanu Boral's user avatar
5 votes

How to call an apex class and visualforce after every 5 seconds to display updated data

Polling every 5 seconds is bad imo and waste of resources. Polling generally slows things down as well. From what I can see if all you want is a notification for newly created, deleted case. Once you ...
Pranay Jaiswal's user avatar
4 votes
Accepted

ReCaptcha Disappears after OutputPanel ReRender

The ReCatcha is added to the page by JavaScript when the original page loads so when the part of the page containing the ReCaptacha is replaced via the re-render, you need to tell the JavaScript to ...
Keith C's user avatar
  • 136k
4 votes
Accepted

Reload VF page on save and edit

try to rerender complete page or use pagereference to reload. Something like return new pagereference('/'+recId); This will solve the problem or can do this PageReference pageRef = new ...
Tushar Sharma's user avatar
4 votes

Only rerender row in <apex:pageBlockTable> using <apex:actionRegion>

I found a way to rerender the rows while only processing the row you're on. I will try to outline the concept here but a a full description of my solution can be found here: Visualforce: Dynamically ...
Xtremefaith's user avatar
  • 4,560
4 votes
Accepted

Rerendering of an output panel not happening

Unfortunately, this is how the Visualforce framework works. When you supply an Id value to the rerender attribute, Visualforce finds that element in the DOM and when your request is complete, re-...
dsharrison's user avatar
  • 3,992
4 votes

Lightning design system - SVG disappears after rerender

Just set your apex:page attribute docType="html-5.0" and this will fix the rerender SVG bug
Magesh M's user avatar
4 votes
Accepted

Page not re-rendering on change? Method not working?

You used a self closing input. You need to leave it open to nest the actionSupport under it. Incorrect <apex:inputField ... /> <apex:actionSupport ... /> Correct <apex:...
Adrian Larson's user avatar
  • 150k
4 votes
Accepted

Emoji Support in Visualforce

I solved this problem by using urlencoding. Below is a working example. What I do here is, first I encoded the Case Subject in Condroller using EncodingUtil.URLENCODE then again decode the value in VF ...
Saroj Bera's user avatar
  • 14.7k
4 votes
Accepted

Rendering PageBlockSections based on picklist

A custom controller is not needed. You need to re-render the container holding the component that has the conditional rendering expression. Here is a working example: <apex:page ...
Keith C's user avatar
  • 136k
4 votes
Accepted

AfterRender on button in Lightning Component (DOM update)

I would not use afterRender to attach events, as you'll end up possibly adding duplicate events. Here's a simplified version that does not rely on a renderer: <aura:application > <div id=...
sfdcfox's user avatar
  • 493k
4 votes
Accepted

Visualforce Display and Hide Fields

You could remove apex:PageBlockSection and then add rendered condition in apex:column for 3rd pageBlockTable as follows <apex:pageBlock> <apex:pageBlockTable value="{!AFields}" var="...
Santanu Boral's user avatar
4 votes
Accepted

VF Page not retrieving to the original state after Page refresh

When you are refreshing a page from the browser, it sends the same form data to submit. The viewstate of the page is also sent. That's why you preserve this button disabled. You can use rerender ...
Oleksandr Berehovskyi's user avatar
4 votes

LWC: Tracking a shared imported variable

OK, I figured out a way with help from this StackOverflow answer. We can use a Proxy for the inputs object in the model, defining a custom setter for that proxy. The setter calls one or more listener ...
Matthew Souther's user avatar
3 votes
Accepted

Submit button won't ReRender my VF Page

When you click on <apex:commandLink value="Submit" action="{!save}" rerender="refresh" styleClass="btn linkAsBtn"/> you're calling the SAVE method from the standard controller, not any of the ...
crmprogdev's user avatar
3 votes

Urban Legend? Must Return PageReference To Rerender

Along with the other answers here, in the VF doc on commandButton, the action= attribute is optional. The same is true for commandLink, actionSupport and actionFunction Hence, the rerendering (i.e. ...
cropredy's user avatar
  • 71.7k
3 votes

Urban Legend? Must Return PageReference To Rerender

Its clear to me that one can rerender what they want whether they return a pagereference or not. I'd cite the many methods used as getters and/or setters that are not pagereferences which can be used ...
crmprogdev's user avatar
3 votes

Only last message is displayed when ApexPages.addMessage is used

Each transaction clears the message queue, so if you have two buttons, clicking one then the other clears the first message. You can show multiple messages in an apex:pageMessaages area, but they must ...
sfdcfox's user avatar
  • 493k
3 votes
Accepted

Rerender Typeahead Custom Component

That component sets up the jQuery code using: j$(document).ready(function(){ j$('#{!searchBoxId}').typeahead({ minLength: {!minSearchLength}, hint: true, ...
Keith C's user avatar
  • 136k
3 votes
Accepted

Displaying fields based on picklist (apex:selectOption)

Case Sensitive (in the few cases when it does matter) gets you every time: <apex:actionSupport event="onChange" action="{!updateFieldVisibility}" reRender="editForm" /> should be <apex:...
Eric's user avatar
  • 54.2k
3 votes

Is there a apex command button that allows you to not refresh the page?

Ok, there are a couple of things going on here: When you include merge syntax in javascript they do not get updated when the properties in the controller get updated unless you rerender them. When I ...
Eric's user avatar
  • 54.2k
3 votes
Accepted

Rerender pageblock on change of picklist

You have two problems here: Check Anurag answer. Your action support need to reRender something. It's a common mistake with reRender. You can't reRender an element that was never rendered on the page ...
Fernando Gavinho's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible