reRender on actionFunction is not working. I've also tried placing the actionFunction on top. What's wrong with my code?
function doSearch() {
searchServer(document.getElementById("accName").value);
}
<apex:outputPanel id="searchBar">
<input type="search" class="slds-input slds-lookup__search-input defaultShadow" id="accName" onkeyup="doSearch();"/>
</apex:outputPanel>
<apex:outputPanel id="master">
<apex:outputPanel id="displayTable">
<apex:outputPanel id="participants" rendered="{!registrations.size>0}">
<apex:pageBlock id="asdf">
<apex:pageBlockTable value="{!registrations}" var="registration" id="registrations">
<apex:column >
{!registration.Name}
</apex:column>
<apex:column >
{!registration.Name__c}
</apex:column>
<apex:column >
<center>
<svg class="slds-input__icon slds-icon-text-default slds-icon--x-small" aria-hidden="true">
<apex:outputText rendered="{!hasAttendance[registration.id]}">
<use xlink:href="{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#check')}"></use>
</apex:outputText>
</svg>
</center>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:outputPanel>
<apex:outputPanel id="signaturePanel">
</apex:outputPanel>
</apex:outputPanel>
</apex:outputPanel>
<apex:form>
<apex:actionFunction name="searchServer" action="{!runSearch}" reRender="displayTable">
apex:param name="accName" assignTo="{!memName}" value="" />
</apex:actionFunction>
</apex:form>
the debug logs show that I'm getting the correct records but its not updating the page.
registrations
has value<script>alert()</script>
in the area which is being rerendered ? (just to see if it rerendering the html at all). If the html is being refreshed the alert will fire.<use>
tag in SVG. You cannot render it