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 ...
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:...
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 ...
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).
<...
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 ...
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 ...
5
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 ...
5
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 ...
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 ...
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 ...
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 ...
4
votes
Accepted
ActionSupport rerender not working
There were two problems:
You need to wrap rating in actionRegion since Account name is mandatory.
Also you have placed ! at wrong place in redered condition. I have made corrections. Please check ...
4
votes
Accepted
Rerender two visualforce elements after each other?
You could utilize the oncomplete attribute to ensure the order of the reRendering.
e.g.
// here you are reRendering two elements
<apex:actionSupport event="onchange" action="{!getSelected}" ...
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 ...
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 ...
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
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-...
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:...
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 ...
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=...
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="...
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 ...
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 ...
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 ...
3
votes
How to rerender multiple charts
The reRender attribute takes a literal, comma-delimited set of id's.
reRender="thiscomponent,thatcomponent,theothercomponent"
In your case, I would think you could simply do the following:
...
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 ...
3
votes
Rerender Field Based on Different Field Value in VF
You need to rerender something that surrounds the item that needs to appear and disappear.
In your case, since there are two children of your page block section, I would rerender that, rather than ...
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 ...
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. ...
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,
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rerender × 384visualforce × 275
apex × 103
actionfunction × 34
javascript × 33
visualforce-component × 24
outputpanel × 24
actionsupport × 23
rendered × 22
pageblocktable × 19
commandbutton × 18
lightning-aura-components × 17
controller × 14
selectlist × 11
lightning-web-components × 10
picklist × 10
datatable × 9
lightning × 8
commandlink × 8
ajax × 7
repeat × 7
pageblocksection × 7
button × 6
refresh × 6
apexinputfile × 6