Add a Section to the Application

An application can define between one and five sections, refer to User Interface Element 5 in Introduction. Each section supports displaying multiple object tabs (will be covered later). SimpleApp.app has referenced one section using the id SimpleAppHomeSection. This id refers to a section configuration file, which is an XML configuration file with the extension .sec. Like SimpleApp.app, this file will be added to the EJBServer\components\<component-name>\clientapps directory and the id attribute must match the name of the file.

Add a Section to the Application details an example section file, SimpleAppHomeSection.sec.

Figure 1. SimpleAppHomeSection.sec
<?xml version="1.0" encoding="ISO-8859-1"?>
<sc:section
   id="SimpleAppHomeSection"
   title="Section.Home.Title"
   hide-tab-container="true">

  <sc:tab id="SimpleHome"/>

</sc:section>

The SimpleAppHomeSection.sec file will have a corresponding SimpleAppHomeSection.properties file, which details the localizable content. For example:

Section.Home.Title=Home

The title attribute defines the name of the section tab. In addition, as there is only one tab defined for this section (SimpleHome), the hide-tab-container attribute has been used to hide the object tab bar.