title: Richfaces poupPanel is shown before action execution
body: <p>I have JSF 2.0 form that looks like this</p>
  
  <pre><code>&lt;h:form id="formId"&gt;
  .
  .
  .
         &lt;a4j:commandButton action="#{bean.myAction}" value="foo"  oncomplete="#{rich:component('popup')}.show();" /&gt;
  &lt;/form&gt;
   &lt;rich:popupPanel id="popup" modal="false" autosized="true"
                                resizeable="false"&gt;
  
                  &lt;h:form id="form2"&gt;
                      &lt;h:panelGrid columns="1" &gt;               
                              &lt;h:outputText id="idText" value="#{bean.message}" /&gt;
                          &lt;h:commandButton action="#" onclick="#{rich:component('popup')}.hide(); return false;" value="ok"/&gt;
                      &lt;/h:panelGrid&gt;
                      &lt;/h:form&gt;
  
              &lt;/rich:popupPanel&gt;
  </code></pre>
  
  <p>and bean method</p>
  
  <pre><code> public String action(){
      message = "Some message";
      return "";
  }
  </code></pre>
  
  <p>Clicking the button both "action" and popup show are executed, but looks like calling the popup was executed first. I get message from bean constructor not the changed one. Do you have any idea how to delay popup show action (it is already under the oncomplete attribute)? Is there any usual pattern that can fit here (action dynamically changes content of popup panel, popup should be like outcome message). Or maybe there is a way to invoke popup show from java code(for example from bean.action)? 
  Thanks</p>