1 Reply Latest reply on Aug 8, 2008 5:34 AM by Tathagat Tathagat

    Choose what to send: ajaxSingle and region problem

    Pierre Wargnier Newbie

      I have a large form and I don't want to send all data at each query. For this I use regions and ajaxSingle features. When I look at the log, it seams all is sent to the server anyway.

      Here is my form with ajaxSingle:

      <h:form>
       <h:inputText id="oneA" value="oneAValue" />
       <br />
       <h:inputText id="oneB" value="oneBValue" />
       <br />
       <a4j:commandButton value="Submit2" process="oneB" ajaxSingle="true" reRender=":three1, :three2" />
       <a4j:log popup="false" level="ALL"
       style="width: 1500px; height: 1000px;" />
      </h:form>
      <h:outputText id="three1" value="beanWidth" />
      <h:outputText id="three2" value="beanLenght" />
      


      Here is the log result:
      QueryString: AJAXREQUEST=_viewRoot&j_id8=j_id8&j_id8%3AoneA=oneAValue&j_id8%3AoneB=oneBValue&javax.faces.ViewState=j_id2&ajaxSingle=j_id8%3Aj_id11&j_id8%3Aj_id11=j_id8%3Aj_id11&
      


      As you can see, the values of the fields are sent into the request. It's the same with the region, it does not seams to limit the values sent by AJAX eather.

      I work with Facelets 1.1.14, JSF 1.2.06 and Richfaces 3.2.1 GA.

      I am doing it right ?