2 Replies Latest reply on Oct 19, 2007 2:08 AM by manfred_berry

    Data Transfer

    manfred_berry

      Hi

      I'm somewhat new to richfaces and have an issue with the amount of data which is transfered from the browser to the server for each ajax request.

      It seems to me while looking at the traffic that the whole page is always returned to the browser, which is very slow.....

      I'm trying to do the following.
      I have several little "panels" on the page which should interact with each other.
      A common scenario is for example:
      I have a search panel, a list and a detail view
      on the page. (and several other other panels)
      Once I do a search I want to update some list where I use reRender.

      I was now expecting that only the list data would be transfered to the browser. but instead the whole page get's returned.

      I have been playing with a4j:region and so on but without success so far.
      Is there a way to limit the data transfer.

      Thanks for your help







        • 1. Re: Data Transfer
          ilya_shaikovsky

          Look at my page next simple code uses ajax:

          <h:inputText value="#{bean.property}" required="true">
           <a4j:support event="onkeyup" reRender="test"></a4j:support>
           </h:inputText>
           <h:outputText value="#{bean.property}" id="test"></h:outputText>


          and on the same page in the same form I have large dataTable. After I repeat something using construction below in the fireBug i'm able to see the responce body like:

          <body><span id="j_id2"><span id="title"
          
          >d</span></span><span id="form:test">d</span><span id="form:j_id15"></span><meta name="Ajax-Update-Ids"
          
           content="form:test,form:j_id15,j_id2" /><span id="ajax-view-state"><input type="hidden" name="javax
          
          .faces.ViewState" id="javax.faces.ViewState" value="_id11" /></span><meta id="Ajax-Response" name="Ajax-Response"
          
           content="true" /></body>


          • 2. Re: Data Transfer
            manfred_berry

            Hi

            Tx for the answer :-)

            It seems that the information I provided was wrong.....
            I used firebug for firefox to look at the traffic and that seems to have a seriouse bug. I always showed me the whole bage data instead of just the transfreded data (using v1.05)
            I downloaded another html monitor called charles and with this one I actually see what you describe and what I was expecting as well.
            So everything is ok in richfaces.

            Never trust your data, right?