4 Replies Latest reply on Feb 9, 2010 5:34 AM by ilya_shaikovsky

    ajaxChildActivationEncodeBehavior

    jobor

      Hello,

       

      Can someone explain a little bit more about ajaxChildActivationEncodeBehavior?

      I did run the sample treedemo/pages/rf-4196.jsf but a can't discover the purpose of ajaxChildActivationEncodeBehavior.

      What is meant by Child Activation?

       

      T.I.A.

       

      Johan Borchers

        • 1. Re: ajaxChildActivationEncodeBehavior
          ilya_shaikovsky

          from tld:

           

          Defines which nodes keys will be added to AjaxNodeKeys automatically on the request from the children of the node. Values: "none" - nothing, "node" - only current node, "subtree" - node and all its children.

          • 2. Re: ajaxChildActivationEncodeBehavior
            jobor

            Thanks for the answer!

             

            But what I meant was the Child Activation. What do you mean by Child Activation


            Is that selecting a child node and/or expand a child node resulting in an AJAX request due to ajaxSubmitSelection="true"?

             

            On the page rf-4196.jsf form the samples I don't see something special happen when a set e.g. ajaxChildActivationEncodeBehavior to "subtree".

             

            T.I.A.

             

            Johan Borchers

            • 3. Re: ajaxChildActivationEncodeBehavior
              nbelaevski

              Hi Johan,

               

              If you click a4j:commandLink nested inside plain data table, key for the row will be used for AJAX updates, unless "ajaxKeys" has been specified explicitly. The same is true for the tree and, using ajaxChildActivationEncodeBehavior, you control which part of tree will be updated by AJAX request initiated by nested command component .

              • 4. Re: ajaxChildActivationEncodeBehavior
                ilya_shaikovsky
                But what I meant was the Child Activation. What do you mean by Child Activation

                any action at child nodes which causes ajax request - selection if ajax submit on selection turned on, or expansion in ajax mode.