IntelliJ IDEA 12.1.0 Web Help
Some features described here are available in Ultimate edition only.
Enabling Seam facet in a module makes it possible to a create pageflow definition using jPDL.
IntelliJ IDEA provides a dedicated graphic Designer, completely synchronized with the source code. In the
Designer, you can create a stub pageflow, which is immediately reflected in the source code of the pageflow file.
To make the pageflow definition usable, you have to additionally edit the source code of the pageflow file.
It is very important to properly configure the Web resource directories
for a Web facet of your module. In particular, the directories that contain pages to be included in the pageflow,
should be added to the list of Web resources.
- In the Project tool window, right-click the directory where you want to create the
pageflow definition file, for example, WEB-INF directory,
choose on the context menu, and specify the file name.
IntelliJ IDEA creates pageflow definition stub xml file, and opens it in a separate tab in the editor.
- Click the Designer tab of the pageflow definition file.
- Click the desired button in the toolbox of the Designer, and drag it to the Designer area. Add other
nodes, and change their names as required. This way you can create start and end state, pages, decisions,
and process states.
- Draw links between nodes.
- In the Text tab, edit the source code to associate it with specific views, add
attributes and subelements (specifying action and decision expressions, transitions names, events,
adding subprocesses to process states etc).
Note the code completion for the attributes and values: