4 Replies Latest reply on Nov 20, 2009 6:22 AM by Ilya Shaikovsky

    a4j:commandButton action not working properly in Google Chro

    Tim Whitney Newbie

      JBoss version 4.3
      Richfaces version 3.3.2.SR1
      JSF version Sun RI 1.2_07
      Facelets version 1.1.11

      I am using a4j:commandButton and a4j:jsFunction to call actions in managed beans throughout an application. These actions then forward a user to a new page. This works fine in all browsers except Google Chrome and Safari. I do not see any JavaScript errors on the Chrome JS console either. Everything works perfectly if I use h:commandButton, however this isn't a real solution for me as many of these are in a4j:jsFunction.

      Has anyone run across this before or know of a solution?

      Facelet code

      <!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:c="http://java.sun.com/jstl/core"
       xmlns:fn="http://java.sun.com/jsp/jstl/functions"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
       <head>
       </head>
       <body>
       <h:form>
       <a4j:commandButton action="#{myBean.test}" value="test" />
       </h:form>
       </body>
      </html>


      Managed bean code
      public String test() {
       return "test2";
      }