0 Replies Latest reply on Oct 24, 2007 9:24 AM by lavjeet

    Aj4 support ajaxSingle not working :

    lavjeet

      Hi All,

      I am having a code in which I am using Aj4 ajaxSingle attribute . But it seems that whole form is getting submitted instead of individual element which is changed.

      <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">
      
      <h:form>
      <h:panelGrid columns="3">
       <h:outputText value="Name:" />
       <h:inputText label="Name" id="name" required="true" value="#{userBean.name}">
       <a4j:support event="onblur" ajaxSingle="false" />
       </h:inputText>
      
       <h:outputText value="Job:" />
       <h:inputText label="Job" id="job" required="true" value="#{userBean.job}">
       <a4j:support event="onblur" ajaxSingle="false"/>
       </h:inputText>
      
      
       <h:outputText value="Address:" />
       <h:inputText label="Address" id="address" required="true" value="#{userBean.address}">
       <a4j:support event="onblur" ajaxSingle="true"/>
       </h:inputText>
      
      </h:panelGrid>
      </h:form>
      
      </ui:composition>
      


      Tha code is shown above.

      I am using richfaces-api-3.1.0.jar,richfaces-impl-3.1.0.jar and richfaces-ui-3.1.0.jar . I am using resin 3.1.2.

      In firefox I can see following request being sent using Firebug when I change last field 'address':

      AJAXREQUEST=_viewRoot&j_id0=j_id0&j_id0%3Aname=aa&j_id0%3Ajob=aaaa&j_id0%3Aaddress=sssss&javax.faces


      Any inputs whats happening . I have also tried with a4j:region tag but of not help.Can any one give me a working code using ajaxSingle where only a single element is submitted instead of whole form.
      .ViewState=_id28&j_id0%3Aj_id7=j_id0%3Aj_id7&