2 Replies Latest reply on May 6, 2008 1:26 PM by Mark Stang

    How to reRender a table on error

    Mark Stang Newbie

      I am using a4j:commandLink to delete a row in the backend. However, the delete shouldn't happen, so an exception is thrown and it is caught and displayed as an errorMessage.
      That works fine, the problem is that the table that would have been reRendered as part of the a4j:commandLink is not rendered at all.
      Any idea why and how to "force" the table to be rendered?

      This is my error processing xhtml:

      <a4j:outputPanel ajaxRendered="true">
       <h:outputText value="Your request has failed for the following issues:" rendered="#{not empty facesMessages.currentGlobalMessages}"/>
       <h:messages id="errorMessages" styleClass="errorMessage" globalOnly="true" layout="table"/>

      The error message is displayed the table that is below it (not shown) is not reRendered.