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
Ivaylo DimovIvaylo Dimov 

How to rerender an Output Panel containing results from an API call from a command Button?

I have a VF pages that takes on parameters, and when a "Search" button is clicked, a call is made to an external source. The returned results should be displayed on an output panel that rerenderes after the results become available. My "Search" button has a rerender tag as part displaying a spinner, but it loads the OutputPanel before it had the chance to return any data, hence why my results never get populated on the outputPanel. I can see the reuslts in my debug logs. Is there a way to rerender an outputannel after the data is available?