I've spent countless hours trying to debug why the apex:message below is not showing on the page after the button is clicked. Any ideas what am I doing wrong?
Visualforce
<apex:form id="searchForm">
<apex:outputPanel id="notificationWrapper">
<apex:messages id="notificationPanel" styleClass="slds-notify slds-notify--alert slds-theme--error slds-theme--alert-texture" />
</apex:outputPanel>
</apex:form>
--------------------------
<apex:actionRegion >
<apex:commandLink action="{!deleteDocument}" rendered="
{!IF(currentUserProfile == 'System Administrator',true,false)}"
reRender="notificationWrapper" status="spinnerStatus">
</apex:actionRegion>
Apex
public PageReference deleteDocument() {
ApexPages.addmessage(new ApexPages.Message(ApexPages.Severity.INFO, 'Test'));
return null;
}