0 Replies Latest reply on Oct 24, 2007 9:26 AM by Lavjeet Khanuja

    a4j  ajaxSingle not working

    Lavjeet Khanuja Newbie

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

      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':


      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.