4 Replies Latest reply on May 27, 2010 1:59 AM by ilya_shaikovsky

    One a4j:status for nested a4j:regions

    robert.raksi

      Hi!

       

      I have nested a4j:regions on a page and I'd like to use one a4j:status for all of them. Is there a way to achieve this?

       

      Unfortunately a4j:status is not "inherited" by nested regions.

        • 1. Re: One a4j:status for nested a4j:regions
          To use one global a4j:status : you can give it an id, and refer to it explicitly from ajax tags
          • 2. Re: One a4j:status for nested a4j:regions
            robert.raksi

            Using the status attribute to refer to a given a4j:status in every ajax tag I use on the page is not acceptable. The case is even worse if the file with the nested regions is a template for example:

             

            <a:region>

                 <a:status id='bar'/>

                 <ui:insert name='foo1'/>

                 <a:region>

                      somecode

                      <ui:insert name='foo2'/>

                 </a:region>

                 <ui:insert name='foo3'/>

                 somemore code

            </a:region>

             

            In foo1,2,3 there can be several ajax tags and in the template itself too.

             

            It would simplify things if a4j:region had a status attribute too.

            • 3. Re: One a4j:status for nested a4j:regions
              cparker

              I'm not really sure why <a4j:region> doesn't have a status attribute. <a4j:form> does have one.

              • 4. Re: One a4j:status for nested a4j:regions
                ilya_shaikovsky

                yes.. that was missed during design and will be corrected in RF 4.

                 

                Currently in order to make it easier and more reusable I could only suggest to create facelet tag which will wrap child content with region and plce status inside that region. That will allow to use single tag to add region and status in the same time.