4 Replies Latest reply on May 15, 2008 1:52 PM by Kerdudou Ronan

    a4j:region and a4j:status

    Kerdudou Ronan Apprentice

      As I know, each 'region' can have its own 'status' defined in it and any ajax component inside the region will use only the region's status unless using 'status' attribute.

      In my application I use a global status to something during ajax requests so each time i use a region i have to redefine it (duplication of code) or to use 'status' attibute on each component inside the region...

      It would be a lot easier and developper-friendly if we could have the 'status' attribute on the 'region' tag.

      actual :

      <view>
       <component/>
       <region>
       <component status="status"/>
       <component status="status"/>
       </region>
       <region>
       <status onstart="startAjax()" onstop="stopAjax()"/>
       <component/>
       <component/>
       </region>
       <status id="status" onstart="startAjax()" onstop="stopAjax()"/>
      </view>
      after:
      <view>
       <component/>
       <region status="status">
       <component/>
       <component/>
       </region>
       <region status="status">
       <component/>
       <component/>
       </region>
       <status id="status" onstart="startAjax()" onstop="stopAjax()"/>
      </view>