1 Reply Latest reply on Nov 21, 2007 8:39 AM by ilya_shaikovsky

    ajax4JSF and Firefox 3 bug

    damianharvey

      I've just been trying out Firefox 3 Beta. It's rather nice, however there is a bug specific to ajax4jsf. If an error is thrown while performing an ajax action the browser doesn't render the HTML and instead prints it out as plain text. This behaviour doesn't happen in FireFox 2, Safari or IE.

      I've raised a bug with Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=404547) but not sure if it's one for them or the Ajax4JSF guys.

      Code to reproduce (using Seam):

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a="https://ajax4jsf.dev.java.net/ajax"
       xmlns:s="http://jboss.com/products/seam/taglib">
      <body>
       <h:form>
       <a:commandButton value="Cause Error" action="#{testErrors.exception}"/>
       </h:form>
      </body>
      </html>

      package com.locuslive.odyssey.test;
      
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.exception.HttpError;
      
      @Name("testErrors")
      @HttpError(errorCode=404)
      public class TestErrors {
      
       public void exception() throws Exception{
       throw new Exception("Arrrrgh!");
       }
      }

      Cheers,

      Damian.