JBoss.orgCommunity Documentation

Chapter 10. Seam Preferences

10.1. General Preferences
10.1.1. Validator Preferences
10.2. Project Preferences
10.3. Adding Custom Capabilities

In this chapter you get to know how Seam preferences can be modified during the development process.

Seam preferences can be set using the Seam preference page. Click on WindowPreferencesJBoss ToolsWebSeam.

On this page you can manage the Seam Runtime. Use the appropriate buttons to Add more runtimes or to Remove those that are not needed.


Clicking on Edit button you get the form where you can change the path of Seam runtime home folder, modify name and version. Press Finish to apply the changes.


Tip:

If you try to delete the Seam Runtime that is already in use by some project in the current workspace, then a warning message will appear. To confirm the removal press OK

Besides, when you right-click on your Seam project with deleted runtime in Project Explorer and select PropertiesSeam Settings the error message "Runtime <runtime_name> does not exist" will appear.

Once Seam project is created you can modify its settings. Right click on Seam project in Project Explorer and select PropertiesSeam Settings.

This project properties page allows you to have a flexible project layout. It means that you are not restricted with a specific project structure. You can use the Seam wizards (New Action, Form, Entity, etc.) on Maven, command line seam-gen or your own project structure.


Also notice, you are not required to use the New Seam Project wizard to benefit from Seam artifact wizards. You can just enable Seam on your existing project by checking Seam Support and targeting to Seam Runtime, and then configure the folders as you want.


Tip:

On the figure above fields for configuring Seam artifacts are unavailable because Seam Runtime is not selected.

In Seam Wizards (New Action, Form, Entity, Conversation, Generate Entities) you can get a quick access to project settings using the Settings link in the upper right corner of each wizard.


JBoss Tools provides a possibility to add custom capabilities to any Seam project, i.e. add a support of additional frameworks built on top of JSF, such as

To enable it, you should call the context menu for a Seam project and select ConfigureAdd Custom Capabilities. Then check the needed modules and press Finish.


The next page displays all the updates that have been made to the project.