4 Replies Latest reply on Nov 28, 2014 8:02 AM by matinh

    a4j:status does not stop on simple ajax-request

    daniell

      I have the following rather simple example page to reproduce the problem:

      <?xml version="1.0" encoding="UTF-8"?>
      <!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:h="http://java.sun.com/jsf/html"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:f="http://xmlns.jcp.org/jsf/core">
      <h:head>
      </h:head>
      
      <h:body>
            <h:form>
                <a4j:status  name="nameStatus">
                    <f:facet name="start">Working...</f:facet>
                </a4j:status>
      
                <h:commandLink id="lnk">
                    <a4j:ajax listener="#{dummyBean.someAction}"
                              render="lnk" />
                    Linktext
                </h:commandLink>
            </h:form>
      </h:body>
      </html>
      
      

       

      The listener action at the a4j:ajax component is an empty method on a @Named @SessionScoped CDI-Bean. When clicking the link, the start-facet of the status-indicator is rendered, but is does not disappear any more. The same happens when replacing the a4j:ajax component by f:ajax.

       

      There are several issues reported in this forum and the bugtracker with similar content (like [RF-12092] a4j:poll : a4j:status never clears - JBoss Issue Tracker or [RF-10853] dataScroller: do not works with a4j:status properly - JBoss Issue Tracker from the tracker and Re: RichFaces4 dataScroller+a4j:status doesn't work, a4j:status does not return or a4j:status does not return).

       

      Maybe this brings some new insights with an easy-to-reproduce example running on version 4.3.5.Final or any advice on how to deal with this problem.