JBoss.orgCommunity Documentation

Chapter 7. Seam Editors

updated
7.1. Visual Page Editor
7.2. Seam Pages Editor
7.2.1. Graphical Mode
7.2.2. Tree Mode
7.2.3. Outline Support for Seam Pages Editor
7.3. Seam Components Editor
7.4. Main Features of Seam Editors
7.4.1. Content Assist

This chapter tells about Seam Editors and their features.

Visual Page Editor fits perfectly for authoring view Seam pages. The major features of VPE are listed in Main Features of Seam Editors

You can also read more about Visual Page Editor in Visual Page Editor chapter of "Visual Web Tools Reference Guide".

Seam Pages Editor provides a handy way to edit the pages.xml file.

You can edit the pages.xml file in three modes: Graphical, Tree and Source.

Seam Pages Editor supports synchronization with Package Explorer.This means that while renaming files in the Package Explorer all the changes immediately affect the pages.xml file.

Graphical mode provides you with a set of visual tools to organize your project pageflow, exception handling etc.


The Graphical part of the editor has some visual elements. The table below shows graphical representation of the elements and explains their meanings.


Pageflow relations are shown with gray arrows, when you select a relationship the arrow is changed to orange.

On the lefthand side of the Graphical view of Seam Page Editor you can find a toolbar with a set of icons for the most frequently used commands.


Context menus are also available when you click either on an item or a blank space.

A context menu called on a blank space of the diagram provides the following options:

  • Page creates a new page element on the diagram

  • Exception creates a new exception element on the diagram

  • Auto Layout formats the layout of the diagram automatically

  • Select Element calls the Select Element Wizard with a filter to perform a quick search through the pages.xml file

Rightclicking on a selected <page> element calls a context menu where you can choose the following options if you click on the New menu item:

  • Rule opens the Add Navigation Rule dialog in which you can browse your project for a view page to set the view-id in the navigation rule and specify render or redirect navigation options

  • Param calls a dialog box where you can define a parameter (using the <param> tag) for the <page> element

When editing components.xml a structured tree editor is available in addition to pure source editing. It has a graphical view (Tree tab) and source (Source tab).


Note:

You can view and edit components.xml and other xml files directly in the Project Explorer and Properties sheet without opening the components.xml editor.


In this chapter you will know what Seam Editors features are and how to work with them.

Content Assist (Ctrl + Space) is available when using EL expressions in the following file formats:

Notice, the code completion for the Seam components shows the proposals marked with Seam icon.


Content Assist is also available for the "jsfc " attribute, it lets you select from a list of possible attribute values. Whereas, JSF components appear above all other components in the list.