2 Replies Latest reply on Jul 30, 2009 3:44 PM by nbelaevski

    ajaxSingle vs region

    elf

      Hi

      Please clarify.

      1.
      I have a4j:commandLink on the page. In case of reduce server process time I can use:
      a. ajaxSingle = true
      b. wrap this component using region

      What is the differences between those 2 ways ?

      2. In what cases it is good to use process attribute?

        • 1. Re: ajaxSingle vs region
          ilya_shaikovsky

          region used to limit server side processing to just its inner subtree.

          ajaxSingle - just particular case - fully the same to wrapping just one link into region.

          process atrribute usefull when you can't define subttre to be processed with one region. for example you have three inputs and need to process third one together with the first. So wrapping to one region impossible because of second one. So you should made support on the third input ajaxSingle and add define process = "firstinputId" on it.

          • 2. Re: ajaxSingle vs region
            nbelaevski

            Also region affects work of a4j:status component.