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:
- Open <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml in a text editor.
Locate the following section:
XML<managed-property> <property-name>enableTableAnnotations</property-name> <value>true</value> </managed-property>
Change the value to
false
.XML<managed-property> <property-name>enableTableAnnotations</property-name> <value>false</value> </managed-property>
- 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:
- Open <tomcat_home>\webapps\webapi\WEB-INF\faces-config.xml in a text editor.
Locate the following section:
XML<managed-property> <property-name>annotationPanelExpanded</property-name> <value>true</value> </managed-property>
Change the value to false.
XML<managed-property> <property-name>annotationPanelExpanded</property-name> <value>false</value> </managed-property>
- 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).
- Open the message.properties file in a text editor.
Locate the following definitions:
TEXTpage.tableView.annotationPanel.expandedCaption=Annotation Descriptions page.tableView.annotationPanel.collapsedCaption=Show Annotation Descriptions...
Change the values to your preferred text. For example:
TEXTpage.tableView.annotationPanel.expandedCaption=Table Annotations page.tableView.annotationPanel.collapsedCaption=Click to Show Annotation Details...
- Save your changes to the file and restart Tomcat or the SuperWEB2 service.