function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gliustonecobragliustonecobra 

Cannot rerender a chatter component?

I don't know if anybody else has noticed this, but the moment I try to rerender a chatter feed component on a completely custom visualforce page, it loses the ability to rerender its own feed stream when I add a feed item directly from that page. It's as if the rerender I fired off breaks the rerender used in chatter components themselves. The feed items I share do take affect, though. They show after I refresh the entire page. 

 

Has anybody seen this and/or found a workaround yet?

 

 

<apex:page standardController="Case" extensions="test">
	<apex:form >
		<apex:actionFunction name="saveStay" action="{!save}" rerender="test"/>				
		<apex:inputField value="{!case.status}"/>
		<a href="javascript&colon; saveStay();">test</a> 
	</apex:form>

	<apex:outputPanel id="test">
		<chatter:feedWithFollowers entityId="{!Case.Id}"/>
	</apex:outputPanel>
	
</apex:page>

 

 

gliustonecobragliustonecobra

I could have sworn I tried the following this morning and it didn't work, but it does now. I'll leave it here for others to reference. I do want to point out that this hampers the user experience though. Since the entire component is rerendered on every action, the user cannot quickly add comments or feed items in sequence. I'm still hunting for a more ideal workaround/fix:

 

<apex:page standardController="Case" extensions="test">
	<apex:form >
		<apex:actionFunction name="saveStay" action="{!save}" rerender="test"/>				
		<apex:inputField value="{!case.status}"/>
		<a href="javascript&colon; saveStay();">test</a> 
	</apex:form>

	<apex:outputPanel id="test">
		<chatter:feedWithFollowers entityId="{!Case.Id}" rerender="test"/>
	</apex:outputPanel>

</apex:page>