Area components are usefull to show or hidden all the enclosed components at the same time by just making the area visible or not. Area tag is "area" i.e.
<comp:area name="my_area"> <comp:label name="your_name_label" text="Your name:"/> <comp:inputbox name="your_name"/> <br> <comp:label name="your_email" text="Your email:"/> </comp:area>
As in this example, we can show or hidden all the enclosed components by just making visible the "my_area" component:
//hidden all the components enclosed in my_area: $my_area = $this->getComponent('my_area'); $my_area->setVisible(false);
__UIComponent | --__UIContainer | --__AreaComponent
Inherited From __UIContainer
Inherited From __UIComponent