2 Replies Latest reply on May 6, 2008 7:44 PM by asookazian

    a4j:status onstart not working

    asookazian

      RF 3.1.3

      In the following xhtml, the first h:selectOneMenu works and changes the mouse pointer. The 2nd one does not due to the a4j:region around it.

      Is this a bug?

      .xhtml:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      
      
      <ui:composition 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:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:s="http://jboss.com/products/seam/taglib"
       template="layout/template.xhtml">
      
      <ui:define name="body">
      
      <h:messages globalOnly="true" styleClass="message" />
       <script type="text/javascript">
       //<![CDATA[
      
       function changePointer(onOff) {
       if (onOff == true) {
       document.body.style.cursor = "wait";
       }
       else {
       document.body.style.cursor = "default";
       }
       }
      
       //]]>
       </script>
      
      
       <a4j:status onstart="changePointer(true)" onstop="changePointer(false)"/>
      
      
       <a4j:form>
       <h:selectOneMenu value="#{assignToStorage.selectedTech}" valueChangeListener="#{assignToStorage.processValueChange}">
       <f:selectItems value="#{assignToStorage.techniciansList}"/>
       <a4j:support event="onchange" ajaxSingle="true"/>
       </h:selectOneMenu>
      
       <!-- a4j:region is causing the changePointer to not get called... -->
       <a4j:region>
       <h:selectOneMenu value="#{assignToStorage.selectedTech}" valueChangeListener="#{assignToStorage.processValueChange}">
       <f:selectItems value="#{assignToStorage.techniciansList}"/>
       <a4j:support event="onchange" ajaxSingle="true"/>
       </h:selectOneMenu>
       </a4j:region>
       </a4j:form>
      
      </ui:define>
      
      </ui:composition>