Disabling and Enabling Declaration of Managed Beans by Annotation
You can choose to declare new managed beans using Java annotations or by declaring them in the WEB-INF/faces-config.xml file. Both methods are valid, and this is generally a personal preference for the developer. Using Java annotations can make it easier to share managed beans between projects.
By default, Software AG Designer enables you to declare managed beans using annotations.
To disable or enable declaration of managed beans with annotations
1. In Designer: Window > Preferences.
2. In the preferences tree, expand the Software AG node and click UI Development.
3. Do one of the following:
To disable bean declaration with annotations, clear the
Prefer Declaring Managed Beans via Java Annotations check box.
To enable bean declaration with annotations, select the
Prefer Declaring Managed Beans via Java Annotations check box. This check box is selected by default.
4. Click Apply to apply your changes and continue with other preference settings, or click OK to apply the changes and close the Preferences dialog box.
Related Topics