1 Reply Latest reply on Jun 12, 2009 3:21 PM by Nick Belaevski

    Error page not shown on ajax request to commandButton listen

    Alexandre Newbie

      Hi,

      I can still reproduce the error in this issue: https://jira.jboss.org/jira/browse/RF-4509 with 3.3.1.GA.

      Im my jsf I have this button:

      <a4j:commandButton value="#{base_msgs['search']}" reRender="table, messagesPanel"
      focus="nameSearch" actionListener="#{regionBean.searchListener}"/>
      


      In my ManagedBean:
      public void searchListener(ActionEvent e) throws Exception {
       throw new RuntimeException("test");
      }
      


      In my web.xml:
       <error-page>
       <exception-type>java.lang.Exception</exception-type>
       <location>/errorpage.jsf</location>
       </error-page>
      


      If I change from Listener to Action everything goes fine and the error page is called.
      Am I doing something wrong ?

      Thansk in advance