title: How to reload page when a button is clicked?
body: <p>I need to refresh current page when confirm button is clicked. I am trying to find the answer on the internet, but with little or no success at all. It would be nice if there was a way to update it from front-end (JSF), not from backing bean, but, I will take both answers as solutions.</p>
  
  <p>My command button looks like this:</p>
  
  <pre><code>&lt;a4j:commandButton id="deleteButton" styleClass="simpleButtonRed"
          value="#{msg['common.delete']}"
          execute="@this" render="@none" limitRender="true" &gt;
          &lt;adn:confirm
              id="confirmButtonas"    
              message="#{msg['common.delete.confirm']}"
              confirmAction="#{messagesListBean.deleteMessages}"
              confirmLabel="#{msg['common.confirm']}"
              confirmBtnStyleClass="mainButtonGreen"
              confirmImmediate="true" 
              confirmRender="errorMessageOuterPanel" 
              onConfirmComplete="if(#{!messagesListBean.operationCompleted}) {
                                 #{rich:component('errorPanel')}.show();}"/&gt;
  &lt;/a4j:commandButton&gt;
  </code></pre>