2

I am experiencing a strange behavior for the first time...

I have a actionFunction in my apex compoenent, which has reRender to some panel id. The panel doesnot reRender at all even though the method is successfully executed at the back end. If I make it empty reRender function and put an alert on complete, this works..

AM I MISSING Something?

<apex:actionFunction name="fetchRecords" action="{!refreshSubCaseRecords}" oncomplete="alert('123')" immediate="true" reRender="refreshPanel" />
3
  • do you actually need the immediate = true?
    – brovasi
    Commented Jun 5, 2015 at 2:04
  • @brovasi just trying different attributes.. nothing working.. Commented Jun 5, 2015 at 2:07
  • 1
    Can you post more of your page? You might need to use a hierarchy of IDs to indicate what to refresh.
    – Matt Lacey
    Commented Jun 5, 2015 at 2:30

2 Answers 2

2

Wild guess (you still need to post more code) but rerender only applies to child elements and not the element itself.

For example if you rerender:

<apex:outputText id="output" rendered="{!condition}" value="text" />

it won't work.

But if you change it to(with output panel):

<apex:outputPanel id="output">
    <apex:outputText rendered="{!condition}" value="text" />
</apex:outputPanel>

presto bingo.

0

May be your are reRendering a output panel which is having render condition so put a outputpanel outside that output panel and then rerender that parent outputpanel

1
  • Nopes.. I am aware of that.. I dont have any rendered action in the same panel.. Commented Jun 5, 2015 at 12:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .