0 Replies Latest reply on Nov 7, 2011 10:54 AM by bustosadrian

    f:queue "onerror" (jsf 1.2) doesn't work on Opera

    bustosadrian

      Hi...

       

      I've been struggeling with f:queue trying to make the "onerror" event works.

       

      I've a filter...

      try {
           filterChain.doFilter(request, response);
       } catch (ServletException se) {
           httpServletResponse.sendRedirect(null);
      }
      

       

      And I want that the f:queue to alert "error" without the redirection to the error page.

       

       

      
      
      <a4j:form>
      
      
      
      
      
      
      
      
      <a4j:queue onerror="alert('Error!');" />
      
      
      
      
      
      
      
      
      <a4j:commandButton action="#{backingBean.go}" value="Go!" />
      
      
      
      
      
      
      
      
      </a4j:form>
      
      
      
      
      
      
      
      

       

      This works on every browser except Opera. Opera will call the "onerror" event if hay throw the exception instead of send a null redirect.

       

      Is there a flag or a status I should set on the response to make this works?