IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

You can define Seam components in two ways:

  • By adding annotations to a class.
  • By declaring a component in the components.xml file.

A component can be declared both with an annotation, and with an entry in the components.xml file. The components.xml file is used to specify additional properties of a component.

To annotate a class as a seam component
  1. Open the desired class for editing.
  2. Add the @Name Seam annotation:

    SeamComponents1.png

    Tip

    If the corresponding import statements are missing, use the import assistant prompt.

To create the components.XML file
  1. In the Project tool window, right-click the directory where you want to create the components.xml file, for example, WEB-INF directory, and choose New | Seam components.xml on the context menu.
  2. Populate the file as required. Note that Seam-aware coding assistance is available.

See Also

Concepts:

Procedures:

Reference:

External Links:

Web Resources: