title: render richfaces popupPanel after bean method is finished
body: <p>I have a simple problem where I want to display a popup if something went wrong in my managed bean.
  The bean holds a list of exceptions that can be raised, with getter/setter methods.</p>
  
  <p>The xhtml looks like this</p>
  
  <pre><code>      &lt;rich:panel&gt;
      &lt;h:form&gt;
          &lt;a4j:commandButton value="Compute Mission"
              action="#{missionHandler.generateMissionFeasability}"
              render="popupPanel"&gt;
          &lt;/a4j:commandButton&gt;
      &lt;/h:form&gt;
     &lt;/rich:panel&gt;
     &lt;rich:popupPanel id="popupPanel" modal="true" autosized="true"
      resizeable="false" moveable="false" rendered="#{not empty    missionHandler.exceptions}"&gt;
      &lt;f:facet name="header"&gt;
          &lt;h:outputText value="Exceptions raised during the processing    " /&gt;
      &lt;/f:facet&gt;
      &lt;f:facet name="controls"&gt;
          &lt;h:outputLink value="#"
              onclick="#{rich:component('popupPanel')}.hide();return false;"&gt;
          &lt;/h:outputLink&gt;
      &lt;/f:facet&gt;
      &lt;/rich:popupPanel&gt;
  </code></pre>
  
  <p>As you see I have a command button that should call generateMissionFeasibility method in the bean.
  The method will (among other things) add exception in the exceptions list.</p>
  
  <p>I would like to check the list (if it's empty or not) to display the popup</p>
  
  <p>The code above doesn't work because I think the popup is rendered before the end of the method in the bean, and the list is empty at the beginning.</p>