Skip to main content
Skip table of contents

Configure Display of Annotations - SuperWEB2

SuperWEB2 will display any annotations that have been configured for the database (learn more about how to set up and configure annotations in SuperSERVER):

There are a number of configuration options you can change that control how annotations are displayed in SuperWEB2:

Turn off Annotations in SuperWEB2

Annotations will be displayed by default if they are configured for the database. To turn off the annotation panel underneath the table:

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml in a text editor.
  2. Locate the following section:

    XML
    <managed-property>
        <property-name>enableTableAnnotations</property-name>
        <value>true</value>
    </managed-property>
  3. Change the value to false.

    XML
    <managed-property>
        <property-name>enableTableAnnotations</property-name>
        <value>false</value>
    </managed-property>
  4. Save your changes and restart Tomcat (or the SuperWEB2 service).

Configure whether the Annotation Panel is Initially Expanded

By default, the annotation panel under the table will be expanded automatically. You can change it so that it is not initially expanded:

  1. Open <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml in a text editor.
  2. Locate the following section:

    XML
    <managed-property>
        <property-name>annotationPanelExpanded</property-name>
        <value>true</value>
    </managed-property>
  3. Change the value to false.

    XML
    <managed-property>
        <property-name>annotationPanelExpanded</property-name>
        <value>false</value>
    </managed-property>
  4. Save your changes and restart Tomcat (or the SuperWEB2 service).

Change the Labels on the Annotation Panel

By default, the annotation panel displays the text Show Annotation Descriptions... when it is collapsed and Annotation Descriptions when it is expanded.

You can change this text by editing <tomcat_home>\webapps\webapi\WEB-INF\classes\messages.properties

There may be multiple versions of this file for different languages and locales, with names like messages_en.properties and messages_de.properties. You need to make these changes in all versions of the file. The properties file that is used will depend on the language settings in the end user's web browser and the set of supported locales defined in the faces-config.xml configuration file (see Multilingual and Localisation Support - SuperWEB2 for more information about localisation and how SuperWEB2 uses the properties files).

  1. Open the message.properties file in a text editor.
  2. Locate the following definitions:

    TEXT
    page.tableView.annotationPanel.expandedCaption=Annotation Descriptions
    page.tableView.annotationPanel.collapsedCaption=Show Annotation Descriptions... 
  3. Change the values to your preferred text. For example:

    TEXT
    page.tableView.annotationPanel.expandedCaption=Table Annotations
    page.tableView.annotationPanel.collapsedCaption=Click to Show Annotation Details...  
  4. Save your changes to the file and restart Tomcat or the SuperWEB2 service.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.